]> granicus.if.org Git - clang/commitdiff
Don't use PathV1.h in cc1as_main.cpp.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Jun 2013 12:48:34 +0000 (12:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Jun 2013 12:48:34 +0000 (12:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184938 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index 08d61ac4de734944763e060164b3b39358ffc1bb..1f3c1d653ea98133a39e848212d87d2fdea97779 100644 (file)
 #include "llvm/Option/OptTable.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/FormattedStream.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/PathV1.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/SourceMgr.h"
@@ -382,7 +382,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
 
   // Delete output on errors.
   if (!Success && Opts.OutputPath != "-")
-    sys::Path(Opts.OutputPath).eraseFromDisk();
+    sys::fs::remove(Opts.OutputPath);
 
   return Success;
 }