[llvm-commits] CVS: llvm/tools/llc/llc.cpp
Duraid Madina
duraid at octopus.com.au
Thu Dec 29 18:47:33 PST 2005
Changes in directory llvm/tools/llc:
llc.cpp updated: 1.121 -> 1.122
---
Log message:
delete file portably
---
Diffs of the changes: (+2 -1)
llc.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.121 llvm/tools/llc/llc.cpp:1.122
--- llvm/tools/llc/llc.cpp:1.121 Tue Dec 27 23:56:36 2005
+++ llvm/tools/llc/llc.cpp Thu Dec 29 20:47:21 2005
@@ -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 @@
<< "' 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.
More information about the llvm-commits
mailing list