Don't leave a trail of bugpoint-execution-output-* breadcrumbs all over the place
authorChris Lattner <sabre@nondot.org>
Sat, 18 Oct 2003 21:02:51 +0000 (21:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Oct 2003 21:02:51 +0000 (21:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9242 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ExecutionDriver.cpp

index 09983584a51256d4d3aec5d7a5e84d07bd2115ad..28ab9ff18da3a9f73bc9bee092113eecac190cea 100644 (file)
@@ -195,7 +195,11 @@ bool BugDriver::diffProgram(const std::string &BytecodeFile,
     }
     FilesDifferent = true;
   }
+  
+  // Remove the generated output.
+  removeFile(Output);
 
+  // Remove the bytecode file if we are supposed to.
   if (RemoveBytecode) removeFile(BytecodeFile);
   return FilesDifferent;
 }