summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-26 12:48:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-26 12:48:34 +0000
commitccc6ea6c0bc8a026053dc54a27163d7c8e38985c (patch)
tree07f1f09a938224e26d238bab19d06752eab1ee9f
parentc8889798792d243440b618021339f0c8d27102fc (diff)
downloadbcm5719-llvm-ccc6ea6c0bc8a026053dc54a27163d7c8e38985c.tar.gz
bcm5719-llvm-ccc6ea6c0bc8a026053dc54a27163d7c8e38985c.zip
Don't use PathV1.h in cc1as_main.cpp.
llvm-svn: 184938
-rw-r--r--clang/tools/driver/cc1as_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/driver/cc1as_main.cpp b/clang/tools/driver/cc1as_main.cpp
index 08d61ac4de7..1f3c1d653ea 100644
--- a/clang/tools/driver/cc1as_main.cpp
+++ b/clang/tools/driver/cc1as_main.cpp
@@ -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(AssemblerInvocation &Opts,
// Delete output on errors.
if (!Success && Opts.OutputPath != "-")
- sys::Path(Opts.OutputPath).eraseFromDisk();
+ sys::fs::remove(Opts.OutputPath);
return Success;
}
OpenPOWER on IntegriCloud