summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2005-12-30 02:47:21 +0000
committerDuraid Madina <duraid@octopus.com.au>2005-12-30 02:47:21 +0000
commitea8aed7ef38077e17253b15f5e7b52b1b5d1db92 (patch)
tree7efb453e97056387a3e5c2b84a6b59a04a094427 /tools
parentdcbaf8a0729f029c03d8c9b569a79d376b8d0fac (diff)
downloadllvm-ea8aed7ef38077e17253b15f5e7b52b1b5d1db92.tar.gz
llvm-ea8aed7ef38077e17253b15f5e7b52b1b5d1db92.tar.bz2
llvm-ea8aed7ef38077e17253b15f5e7b52b1b5d1db92.tar.xz
delete file portably
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llc/llc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index d009fd0735..3880348da1 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -24,6 +24,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/PluginLoader.h"
#include "llvm/Support/PassNameParser.h"
+#include "llvm/Support/FileUtilities.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/System/Signals.h"
#include "llvm/Config/config.h"
@@ -244,7 +245,7 @@ int main(int argc, char **argv) {
<< "' does not support generation of this file type!\n";
if (Out != &std::cout) delete Out;
// And the Out file is empty and useless, so remove it now.
- std::remove(OutputFilename.c_str());
+ sys::Path(OutputFilename).eraseFromDisk();
return 1;
} else {
// Run our queue of passes all at once now, efficiently.