diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-05 21:19:35 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-05 21:19:35 +0000 |
commit | d22debdc9dc93709a8ea321898234933755e4718 (patch) | |
tree | afae9380a1793414004503b4e80f73277b2a38ed /llvm/lib/Support/Path.cpp | |
parent | 18627115f4d2db5dc73207e0b5312f52536be7dd (diff) | |
download | bcm5719-llvm-d22debdc9dc93709a8ea321898234933755e4718.tar.gz bcm5719-llvm-d22debdc9dc93709a8ea321898234933755e4718.zip |
Remove unique_file now that it is unused.
llvm-svn: 185728
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 58c7c96c662..69dd6f5a71d 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -637,23 +637,6 @@ bool is_relative(const Twine &path) { namespace fs { -// This is a mkostemps with a different pattern. Unfortunatelly OS X (ond *BSD) -// don't have it. We should try using mkostemps on systems that have it. -error_code unique_file(const Twine &Model, int &ResultFD, - SmallVectorImpl<char> &ResultPath, bool MakeAbsolute, - unsigned Mode) { - return createUniqueEntity(Model, ResultFD, ResultPath, MakeAbsolute, Mode, - FS_File); -} - -// This is a mktemp with a differet pattern. We use createUniqueEntity mostly -// for consistency. We should try using mktemp. -error_code unique_file(const Twine &Model, SmallVectorImpl<char> &ResultPath, - bool MakeAbsolute) { - int Dummy; - return createUniqueEntity(Model, Dummy, ResultPath, MakeAbsolute, 0, FS_Name); -} - error_code createUniqueFile(const Twine &Model, int &ResultFd, SmallVectorImpl<char> &ResultPath, unsigned Mode) { return createUniqueEntity(Model, ResultFd, ResultPath, false, Mode, FS_File); |