Convert another use of createUniqueFile to TempFile::create.
llvm-svn: 318427
diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h
index af80e8b..5eaad34 100644
--- a/llvm/tools/bugpoint/BugDriver.h
+++ b/llvm/tools/bugpoint/BugDriver.h
@@ -18,6 +18,7 @@
#include "llvm/IR/ValueMap.h"
#include "llvm/Support/Error.h"
+#include "llvm/Support/FileSystem.h"
#include "llvm/Transforms/Utils/ValueMapper.h"
#include <memory>
#include <string>
@@ -278,6 +279,11 @@
Error initializeExecutionEnvironment();
};
+struct DiscardTemp {
+ sys::fs::TempFile &File;
+ ~DiscardTemp();
+};
+
/// Given a bitcode or assembly input filename, parse and return it, or return
/// null if not possible.
///