diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-10 02:34:13 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-10 02:34:13 +0000 |
commit | f6efe58d4585e7fd0b20bac44c3bc027502da121 (patch) | |
tree | 2eb2b4bf55e7e7a445ff923eddf1bee55b7caa52 /clang/lib/Lex/HeaderSearch.cpp | |
parent | 88bc848ab64091edf1ced07d51623b0ec8d02427 (diff) | |
download | bcm5719-llvm-f6efe58d4585e7fd0b20bac44c3bc027502da121.tar.gz bcm5719-llvm-f6efe58d4585e7fd0b20bac44c3bc027502da121.zip |
Replace all uses of PathV1::exists with PathV2::fs::exists.
llvm-svn: 123150
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index d11e87f8a9a..428af8648b9 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -15,6 +15,7 @@ #include "clang/Lex/HeaderMap.h" #include "clang/Basic/FileManager.h" #include "clang/Basic/IdentifierTable.h" +#include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" #include "llvm/ADT/SmallString.h" #include <cstdio> @@ -170,8 +171,8 @@ const FileEntry *DirectoryLookup::DoFrameworkLookup(llvm::StringRef Filename, // If the framework dir doesn't exist, we fail. // FIXME: It's probably more efficient to query this with FileMgr.getDir. - if (!llvm::sys::Path(std::string(FrameworkName.begin(), - FrameworkName.end())).exists()) + bool Exists; + if (llvm::sys::fs::exists(FrameworkName.str(), Exists) || !Exists) return 0; // Otherwise, if it does, remember that this is the right direntry for this |