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)
llvm-svn: 9242

llvm/tools/bugpoint/ExecutionDriver.cpp

index 0998358..28ab9ff 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;
 }