Remove usage of PathV1.h in FindBugs.cpp.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 17 Jun 2013 20:48:36 +0000 (20:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 17 Jun 2013 20:48:36 +0000 (20:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184122 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/FindBugs.cpp

index bb6637edfba8372ef55a495e25fc3d35ee1e0bdc..e2941f6f43aea81251af67d2dfe3607bba2b0032 100644 (file)
@@ -17,7 +17,7 @@
 #include "BugDriver.h"
 #include "ToolRunner.h"
 #include "llvm/Pass.h"
-#include "llvm/Support/PathV1.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
 #include <ctime>
@@ -104,7 +104,7 @@ bool BugDriver::runManyPasses(const std::vector<std::string> &AllPasses,
     }
     outs() << "\n*** diff'd output matches!\n";
     
-    sys::Path(Filename).eraseFromDisk();
+    sys::fs::remove(Filename);
     
     outs() << "\n\n";
     num++;