[llvm] r224527 - Add missing implementation of 'sys::path::is_other' to the support library.
Juergen Ributzka
juergen at apple.com
Thu Dec 18 10:19:47 PST 2014
Author: ributzka
Date: Thu Dec 18 12:19:47 2014
New Revision: 224527
URL: http://llvm.org/viewvc/llvm-project?rev=224527&view=rev
Log:
Add missing implementation of 'sys::path::is_other' to the support library.
The header claims that this function exists, but the linker wasn't too happy
about it not being in the library.
Modified:
llvm/trunk/lib/Support/Path.cpp
Modified: llvm/trunk/lib/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Path.cpp?rev=224527&r1=224526&r2=224527&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Path.cpp (original)
+++ llvm/trunk/lib/Support/Path.cpp Thu Dec 18 12:19:47 2014
@@ -888,6 +888,14 @@ bool is_other(file_status status) {
!is_directory(status);
}
+std::error_code is_other(const Twine &Path, bool &Result) {
+ file_status FileStatus;
+ if (std::error_code EC = status(Path, FileStatus))
+ return EC;
+ Result = is_other(FileStatus);
+ return std::error_code();
+}
+
void directory_entry::replace_filename(const Twine &filename, file_status st) {
SmallString<128> path(Path.begin(), Path.end());
path::remove_filename(path);
More information about the llvm-commits
mailing list