diff options
author | Zachary Turner <zturner@google.com> | 2017-03-07 16:10:10 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-07 16:10:10 +0000 |
commit | 82dd5421fbda9fde74fc1e38a87ab0e8f52ec564 (patch) | |
tree | bc0594db7729c4e0c629a75a422fa149f0c60295 /llvm/lib/Support/Path.cpp | |
parent | dbf2790a1f7fd9db626ff008ef5ad6dfdd052da3 (diff) | |
download | bcm5719-llvm-82dd5421fbda9fde74fc1e38a87ab0e8f52ec564.tar.gz bcm5719-llvm-82dd5421fbda9fde74fc1e38a87ab0e8f52ec564.zip |
[Support] Add the option to not follow symlinks on stat.
llvm-svn: 297154
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 94ed1876bbd..3eee85fc3f7 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -953,9 +953,9 @@ bool status_known(file_status s) { return s.type() != file_type::status_error; } -file_type get_file_type(const Twine &Path) { +file_type get_file_type(const Twine &Path, bool Follow) { file_status st; - if (status(Path, st)) + if (status(Path, st, Follow)) return file_type::status_error; return st.type(); } |