Support/PathV2: Implement directory_entry::status.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 5 Jan 2011 16:39:13 +0000 (16:39 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 5 Jan 2011 16:39:13 +0000 (16:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122881 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/PathV2.cpp

index d86c150c3319f5ae27200df2d27f66ef8dcf349b..481a0387786c0908be0bf850a2ddea2ac6ea701d 100644 (file)
@@ -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