diff options
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 0fb7666aeba..171ccc3970e 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -722,21 +722,6 @@ error_code openFileForWrite(const Twine &Name, int &ResultFD, return error_code::success(); } -error_code openFileForRead(const Twine &Name, int &ResultFD) { - int OpenFlags = O_RDONLY; -#ifdef O_BINARY - OpenFlags |= O_BINARY; // Open input file in binary mode on win32. -#endif - - SmallString<128> Storage; - StringRef P = Name.toNullTerminatedStringRef(Storage); - while ((ResultFD = open(P.begin(), OpenFlags)) < 0) { - if (errno != EINTR) - return error_code(errno, system_category()); - } - return error_code::success(); -} - error_code make_absolute(SmallVectorImpl<char> &path) { StringRef p(path.data(), path.size()); |