summaryrefslogtreecommitdiff
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-01-05 16:39:13 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-01-05 16:39:13 +0000
commit5bcdc7f7c4f1b5aa053b07a4b2ea95b750ed1715 (patch)
tree8029a32c14f2e875c5119468d504741f86ad485d /lib/Support/PathV2.cpp
parent2558516859ac52a17c85afff01073303bd522979 (diff)
downloadllvm-5bcdc7f7c4f1b5aa053b07a4b2ea95b750ed1715.tar.gz
llvm-5bcdc7f7c4f1b5aa053b07a4b2ea95b750ed1715.tar.bz2
llvm-5bcdc7f7c4f1b5aa053b07a4b2ea95b750ed1715.tar.xz
Support/PathV2: Implement directory_entry::status.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index d86c150c33..481a038778 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -697,6 +697,10 @@ error_code has_magic(const Twine &path, const Twine &magic, bool &result) {
return success;
}
+error_code directory_entry::status(file_status &result) const {
+ return fs::status(Path, result);
+}
+
} // end namespace fs
} // end namespace sys
} // end namespace llvm