X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fbugpoint%2FFindBugs.cpp;h=e2941f6f43aea81251af67d2dfe3607bba2b0032;hb=7a88b655ccad0f128ea1a5e8ca433a8827a24ff3;hp=a291f9fb0f99b6e9d78f6b2cef8afc1c902a4d6c;hpb=8261dfed05e32302469ef707cc881fed2c31f85f;p=oota-llvm.git diff --git a/tools/bugpoint/FindBugs.cpp b/tools/bugpoint/FindBugs.cpp index a291f9fb0f9..e2941f6f43a 100644 --- a/tools/bugpoint/FindBugs.cpp +++ b/tools/bugpoint/FindBugs.cpp @@ -17,6 +17,7 @@ #include "BugDriver.h" #include "ToolRunner.h" #include "llvm/Pass.h" +#include "llvm/Support/FileSystem.h" #include "llvm/Support/raw_ostream.h" #include #include @@ -103,7 +104,7 @@ bool BugDriver::runManyPasses(const std::vector &AllPasses, } outs() << "\n*** diff'd output matches!\n"; - sys::Path(Filename).eraseFromDisk(); + sys::fs::remove(Filename); outs() << "\n\n"; num++;