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 | d69c7bdc74a62eef46c742400c70bb0c7af70b4f (patch) | |
| tree | 3ec7898bc6cec45b0bf647e015baa8799ce3c040 /llvm/tools | |
| parent | 2bcf9410de5f2d0a0f8ce3bf0c00a40f4788fa80 (diff) | |
| download | bcm5719-llvm-d69c7bdc74a62eef46c742400c70bb0c7af70b4f.tar.gz bcm5719-llvm-d69c7bdc74a62eef46c742400c70bb0c7af70b4f.zip | |
This class got moved to FileUtilities.h
llvm-svn: 11583
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/bugpoint/BugDriver.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp index bbfdf27b9ee..0b06bc3fdbd 100644 --- a/llvm/tools/bugpoint/BugDriver.cpp +++ b/llvm/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. |

