Add a createUniqueFile function and switch llvm's users of unique_file.
[oota-llvm.git] / tools / bugpoint / ExtractFunction.cpp
index d50f49b2db27b7df6a25466fcfba1edb7d70bba3..2098928b5c45eeb38a576da42e7336436a911567 100644 (file)
@@ -365,8 +365,8 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const
                                                  Module *M) {
   SmallString<128> Filename;
   int FD;
-  error_code EC = sys::fs::unique_file(OutputPrefix + "-extractblocks%%%%%%%",
-                                       FD, Filename);
+  error_code EC = sys::fs::createUniqueFile(
+      OutputPrefix + "-extractblocks%%%%%%%", FD, Filename);
   if (EC) {
     outs() << "*** Basic Block extraction failed!\n";
     errs() << "Error creating temporary file: " << EC.message() << "\n";