Convert two uses of eraseFromDisk.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 17 Jun 2013 21:50:28 +0000 (21:50 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 17 Jun 2013 21:50:28 +0000 (21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184136 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/Miscompilation.cpp

index a17d07ab7ba70ff341f2bc723a8479c5d4d9b698..88bbe228d54be6686235ec63296ef0ad4fa3b8f6 100644 (file)
@@ -121,7 +121,7 @@ ReduceMiscompilingPasses::doTest(std::vector<std::string> &Prefix,
     return InternalError;
   if (Diff) {
     outs() << " nope.\n";
-    sys::Path(BitcodeResult).eraseFromDisk();
+    sys::fs::remove(BitcodeResult);
     return KeepPrefix;
   }
   outs() << " yup.\n";      // No miscompilation!
@@ -136,7 +136,7 @@ ReduceMiscompilingPasses::doTest(std::vector<std::string> &Prefix,
            << BitcodeResult << "'!\n";
     exit(1);
   }
-  sys::Path(BitcodeResult).eraseFromDisk();  // No longer need the file on disk
+  sys::fs::remove(BitcodeResult);
 
   // Don't check if there are no passes in the suffix.
   if (Suffix.empty())