Do not leave a bunch of crud lying around
authorChris Lattner <sabre@nondot.org>
Sun, 7 Dec 2003 02:31:03 +0000 (02:31 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 7 Dec 2003 02:31:03 +0000 (02:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10307 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ExtractFunction.cpp

index 0a56ceb35d248272d3b838f6bef6191806f684dc..1c7f046b74b843c166a73ddcee5aa9b374cdbbce 100644 (file)
@@ -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;
 }