summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-05 20:01:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-05 20:01:03 +0000
commit43318aa17c6dfd235119a2014f1c69df7e49b600 (patch)
treea69caeb3ab11a81805b346f6a2c592a56498f640 /clang-tools-extra
parenta36e78ef5d6a589a0c8a216ba7cc723c640cd5bd (diff)
downloadbcm5719-llvm-43318aa17c6dfd235119a2014f1c69df7e49b600.tar.gz
bcm5719-llvm-43318aa17c6dfd235119a2014f1c69df7e49b600.zip
Use llvm::sys::fs::createTemporaryFile.
llvm-svn: 185718
Diffstat (limited to 'clang-tools-extra')
-rw-r--r--clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp b/clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp
index 06d585a187e..960e3122911 100644
--- a/clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp
+++ b/clang-tools-extra/unittests/cpp11-migrate/IncludeExcludeTest.cpp
@@ -54,7 +54,7 @@ struct InputFiles {
int FD;
ASSERT_NO_ERROR(
- llvm::sys::fs::unique_file("include-%%%%%%", FD, Path));
+ llvm::sys::fs::createTemporaryFile("include", "", FD, Path));
IncludeDataPath = Path.str();
{
llvm::raw_fd_ostream IncludeDataFile(FD, true);
@@ -64,7 +64,7 @@ struct InputFiles {
}
ASSERT_NO_ERROR(
- llvm::sys::fs::unique_file("exclude-%%%%%%", FD, Path));
+ llvm::sys::fs::createTemporaryFile("exclude", "", FD, Path));
ExcludeDataPath = Path.str();
{
llvm::raw_fd_ostream ExcludeDataFile(FD, true);
OpenPOWER on IntegriCloud