mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
delete file portably
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dcbaf8a072
commit
ea8aed7ef3
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user