summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitce551baee628adfc905e13c77aa17010a425dacc (patch)
tree74abc1ed8bd67808a7523df36e81ad637bbfeb00 /llvm/tools
parent60ab61fcfc36d3ce2d07596a2dfad142c287c7e0 (diff)
downloadbcm5719-llvm-ce551baee628adfc905e13c77aa17010a425dacc.tar.gz
bcm5719-llvm-ce551baee628adfc905e13c77aa17010a425dacc.zip
delete file portably
llvm-svn: 25048
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llc/llc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index d009fd07358..3880348da17 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud