diff options
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | llvm/tools/bugpoint/Miscompilation.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index 2a23ee9e5d9..33bfd502c02 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -93,7 +93,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix, // If the prefix maintains the predicate by itself, only keep the prefix! if (BD.diffProgram(BytecodeResult)) { std::cout << " nope.\n"; - removeFile(BytecodeResult); + sys::Path(BytecodeResult).destroyFile(); return KeepPrefix; } std::cout << " yup.\n"; // No miscompilation! @@ -107,7 +107,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix, << BytecodeResult << "'!\n"; exit(1); } - removeFile(BytecodeResult); // No longer need the file on disk + sys::Path(BytecodeResult).destroyFile(); // No longer need the file on disk // Don't check if there are no passes in the suffix. if (Suffix.empty()) @@ -760,9 +760,9 @@ static bool TestCodeGenerator(BugDriver &BD, Module *Test, Module *Safe) { std::cerr << ": still failing!\n"; else std::cerr << ": didn't fail.\n"; - removeFile(TestModuleBC.toString()); - removeFile(SafeModuleBC.toString()); - removeFile(SharedObject); + TestModuleBC.destroyFile(); + SafeModuleBC.destroyFile(); + sys::Path(SharedObject).destroyFile(); return Result; } |