summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2017-03-13 12:24:51 +0000
committerAaron Ballman <aaron@aaronballman.com>2017-03-13 12:24:51 +0000
commit345012dfa0d058a6037f94ec0f7ee2002b411bf2 (patch)
tree55f30961a07056b86f6ae7734fb10d0660a94584 /llvm/lib/Support/Path.cpp
parentf5cba91591f45baf25d097763b59915bbee81114 (diff)
downloadbcm5719-llvm-345012dfa0d058a6037f94ec0f7ee2002b411bf2.tar.gz
bcm5719-llvm-345012dfa0d058a6037f94ec0f7ee2002b411bf2.zip
Reverting r297617 because it broke some bots:
http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/49970 llvm-svn: 297618
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index 5ac60e8dc3e..fc3cf525c93 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -1189,20 +1189,12 @@ std::error_code identify_magic(const Twine &Path, file_magic &Result) {
}
std::error_code directory_entry::status(file_status &result) const {
- return fs::status(Path, result, FollowSymlinks);
-}
-
-ErrorOr<perms> getPermissions(const Twine &Path) {
- file_status Status;
- if (std::error_code EC = status(Path, Status))
- return EC;
-
- return Status.permissions();
-}
-
-} // end namespace fs
-} // end namespace sys
-} // end namespace llvm
+ return fs::status(Path, result, FollowSymlinks);
+}
+
+} // end namespace fs
+} // end namespace sys
+} // end namespace llvm
// Include the truly platform-specific parts.
#if defined(LLVM_ON_UNIX)
OpenPOWER on IntegriCloud