Home | History | Annotate | Download | only in Frontend

Lines Matching refs:Path

28 #include "llvm/Support/Path.h"
37 /// a HeaderSearch object. InitHeaderSearch stores several search path lists
56 /// AddPath - Add the specified path to the specified group list, prefixing
58 void AddPath(const Twine &Path, IncludeDirGroup Group, bool isFramework);
60 /// AddUnmappedPath - Add the specified path to the specified group list,
62 void AddUnmappedPath(const Twine &Path, IncludeDirGroup Group,
105 /// Realize - Merges all search path lists into one list and send it to
112 static bool CanPrefixSysroot(StringRef Path) {
114 return !Path.empty() && llvm::sys::path::is_separator(Path[0]);
116 return llvm::sys::path::is_absolute(Path);
120 void InitHeaderSearch::AddPath(const Twine &Path, IncludeDirGroup Group,
122 // Add the path with sysroot prepended, if desired and this is a system header
126 StringRef MappedPathStr = Path.toStringRef(MappedPathStorage);
128 AddUnmappedPath(IncludeSysroot + Path, Group, isFramework);
133 AddUnmappedPath(Path, Group, isFramework);
136 void InitHeaderSearch::AddUnmappedPath(const Twine &Path, IncludeDirGroup Group,
138 assert(!Path.isTriviallyEmpty() && "can't handle empty path here");
142 StringRef MappedPathStr = Path.toStringRef(MappedPathStorage);
166 // It is a headermap, add it to the search path.
246 // supplied path.
248 llvm::sys::path::append(P, "include");
319 llvm::sys::path::append(P, "../../../i686-w64-mingw32/include");
324 llvm::sys::path::append(P, "../../../x86_64-w64-mingw32/include");
330 llvm::sys::path::append(P, "../../../include");
462 // NB: This code path is going away. All of the logic is moving into the
489 StringRef NoVer = llvm::sys::path::parent_path(HSOpts.ResourceDir);
491 StringRef Lib = llvm::sys::path::parent_path(NoVer);
493 SmallString<128> P = llvm::sys::path::parent_path(Lib);
496 llvm::sys::path::append(P, "include", "c++", "v1");
554 // dir. This is weird, but required to emulate GCC's search path correctly.
584 // If the first dir in the search path is a non-system dir, zap it
692 Init.AddUnmappedPath(E.Path, E.Group, E.IsFramework);
694 Init.AddPath(E.Path, E.Group, E.IsFramework);
707 llvm::sys::path::append(P, "include");