summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-07 16:10:10 +0000
committerZachary Turner <zturner@google.com>2017-03-07 16:10:10 +0000
commit82dd5421fbda9fde74fc1e38a87ab0e8f52ec564 (patch)
treebc0594db7729c4e0c629a75a422fa149f0c60295 /llvm/lib/Support/Path.cpp
parentdbf2790a1f7fd9db626ff008ef5ad6dfdd052da3 (diff)
downloadbcm5719-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.cpp4
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();
}
OpenPOWER on IntegriCloud