mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
This class got moved to FileUtilities.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f1e3285f3a
commit
c064e8930f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user