diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-03-31 13:04:19 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-03-31 13:04:19 +0000 |
commit | c60223ef6c136d14532b8481706ee614cd6c2499 (patch) | |
tree | 57decd04244cc75439176c8999fe9ecaaad3ff9c /llvm/tools/bugpoint/ExecutionDriver.cpp | |
parent | 41f32c71273156391eb0855bf78b5ea533dd0ac0 (diff) | |
download | bcm5719-llvm-c60223ef6c136d14532b8481706ee614cd6c2499.tar.gz bcm5719-llvm-c60223ef6c136d14532b8481706ee614cd6c2499.zip |
Switch FileRemover from PathV1 to V2.
llvm-svn: 128630
Diffstat (limited to 'llvm/tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExecutionDriver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index f1601cdb845..9be9dfd6507 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/tools/bugpoint/ExecutionDriver.cpp @@ -323,7 +323,7 @@ void BugDriver::compileProgram(Module *M, std::string *Error) const { } // Remove the temporary bitcode file when we are done. - FileRemover BitcodeFileRemover(BitcodeFile, !SaveTemps); + FileRemover BitcodeFileRemover(BitcodeFile.str(), !SaveTemps); // Actually compile the program! Interpreter->compileProgram(BitcodeFile.str(), Error, Timeout, MemoryLimit); @@ -364,7 +364,8 @@ std::string BugDriver::executeProgram(const Module *Program, // Remove the temporary bitcode file when we are done. sys::Path BitcodePath(BitcodeFile); - FileRemover BitcodeFileRemover(BitcodePath, CreatedBitcode && !SaveTemps); + FileRemover BitcodeFileRemover(BitcodePath.str(), + CreatedBitcode && !SaveTemps); if (OutputFile.empty()) OutputFile = OutputPrefix + "-execution-output"; |