r184938 - Don't use PathV1.h in cc1as_main.cpp.

Rafael Espindola rafael.espindola at gmail.com
Wed Jun 26 05:48:34 PDT 2013


Author: rafael
Date: Wed Jun 26 07:48:34 2013
New Revision: 184938

URL: http://llvm.org/viewvc/llvm-project?rev=184938&view=rev
Log:
Don't use PathV1.h in cc1as_main.cpp.

Modified:
    cfe/trunk/tools/driver/cc1as_main.cpp

Modified: cfe/trunk/tools/driver/cc1as_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1as_main.cpp?rev=184938&r1=184937&r2=184938&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1as_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1as_main.cpp Wed Jun 26 07:48:34 2013
@@ -40,12 +40,12 @@
 #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(AssemblerIn
 
   // Delete output on errors.
   if (!Success && Opts.OutputPath != "-")
-    sys::Path(Opts.OutputPath).eraseFromDisk();
+    sys::fs::remove(Opts.OutputPath);
 
   return Success;
 }





More information about the cfe-commits mailing list