summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExtractFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-07 02:31:03 +0000
committerChris Lattner <sabre@nondot.org>2003-12-07 02:31:03 +0000
commit233b0691138d31a08d2e9eb4bf4419e67fb2c666 (patch)
tree82445ee06c131a046ad4e77385f891448afccea0 /llvm/tools/bugpoint/ExtractFunction.cpp
parentb762ddbdf12f96dab420e37fde5ca21d8c1d3add (diff)
downloadbcm5719-llvm-233b0691138d31a08d2e9eb4bf4419e67fb2c666.tar.gz
bcm5719-llvm-233b0691138d31a08d2e9eb4bf4419e67fb2c666.zip
Do not leave a bunch of crud lying around
llvm-svn: 10307
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r--llvm/tools/bugpoint/ExtractFunction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp
index 0a56ceb35d2..1c7f046b74b 100644
--- a/llvm/tools/bugpoint/ExtractFunction.cpp
+++ b/llvm/tools/bugpoint/ExtractFunction.cpp
@@ -24,6 +24,7 @@
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Target/TargetData.h"
#include "Support/CommandLine.h"
+#include "Support/FileUtilities.h"
using namespace llvm;
namespace llvm {
@@ -129,6 +130,7 @@ Module *BugDriver::performFinalCleanups(Module *M, bool MayModifySemantics) {
<< Filename << "'!\n";
exit(1);
}
+ removeFile(Filename);
}
return M;
}
OpenPOWER on IntegriCloud