diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-24 17:02:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-24 17:02:17 +0000 |
commit | 640f22e66d90439857a97a83896ee68c4f7128c9 (patch) | |
tree | 47bce45dc762178d2e8f5e9d03cbbcae4be925bc /tools/bugpoint/ExecutionDriver.cpp | |
parent | 7899b74fdbb58bcb50641703b6f1f212a3aebcb0 (diff) |
Implement support for bugpoint to identify which FUNCTION an optimization
is miscompiling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 422ececb40..acc363bf97 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -164,7 +164,8 @@ std::string BugDriver::executeProgram(std::string OutputFile, /// different, true is returned. /// bool BugDriver::diffProgram(const std::string &ReferenceOutputFile, - const std::string &BytecodeFile) { + const std::string &BytecodeFile, + bool RemoveBytecode) { // Execute the program, generating an output file... std::string Output = executeProgram("", BytecodeFile); @@ -192,5 +193,6 @@ bool BugDriver::diffProgram(const std::string &ReferenceOutputFile, } while (C1 != EOF); removeFile(Output); + if (RemoveBytecode) removeFile(BytecodeFile); return FilesDifferent; } |