diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-18 17:01:00 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-18 17:01:00 +0000 |
commit | 8ee23f00c7e9343d09313051c318906558d6ad17 (patch) | |
tree | 3e8f0a4c0340268de38b841319840ed5b12d54dd /include | |
parent | 21a78d149fc3939b19fe8a132ece0b4c1bd62517 (diff) | |
download | llvm-8ee23f00c7e9343d09313051c318906558d6ad17.tar.gz llvm-8ee23f00c7e9343d09313051c318906558d6ad17.tar.bz2 llvm-8ee23f00c7e9343d09313051c318906558d6ad17.tar.xz |
Add a version of unique_file that return just the file name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 79f85539c0..11c78cc939 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -509,6 +509,10 @@ error_code unique_file(const Twine &model, int &result_fd, SmallVectorImpl<char> &result_path, bool makeAbsolute = true, unsigned mode = 0600); +/// @brief Simpler version for clients that don't want an open file. +error_code unique_file(const Twine &Model, SmallVectorImpl<char> &ResultPath, + bool MakeAbsolute = true, unsigned Mode = 0600); + /// @brief Canonicalize path. /// /// Sets result to the file system's idea of what path is. The result is always |