diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-18 17:17:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-18 17:17:10 +0000 |
commit | c064e8930f15ef81c7734d30169c0f445a929722 (patch) | |
tree | 8074496355fdb692c5b767eb4171bc6927991cfa | |
parent | f1e3285f3a45f21d237809a8da29558981282b56 (diff) | |
download | llvm-c064e8930f15ef81c7734d30169c0f445a929722.tar.gz llvm-c064e8930f15ef81c7734d30169c0f445a929722.tar.bz2 llvm-c064e8930f15ef81c7734d30169c0f445a929722.tar.xz |
This class got moved to FileUtilities.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11583 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/bugpoint/BugDriver.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp index bbfdf27b9e..0b06bc3fdb 100644 --- a/tools/bugpoint/BugDriver.cpp +++ b/tools/bugpoint/BugDriver.cpp @@ -151,14 +151,7 @@ bool BugDriver::run() { // Make sure the reference output file gets deleted on exit from this // function, if appropriate. - struct Remover { - bool DeleteIt; const std::string &Filename; - Remover(bool deleteIt, const std::string &filename) - : DeleteIt(deleteIt), Filename(filename) {} - ~Remover() { - if (DeleteIt) removeFile(Filename); - } - } RemoverInstance(CreatedOutput, ReferenceOutputFile); + FileRemover RemoverInstance(CreatedOutput, ReferenceOutputFile); // Diff the output of the raw program against the reference output. If it // matches, then we have a miscompilation bug. |