/external/llvm-project/clang/lib/Driver/ToolChains/ |
D | Hurd.cpp | 32 StringRef SysRoot) const { in getMultiarchTriple() 38 if (D.getVFS().exists(SysRoot + "/lib/i386-gnu")) in getMultiarchTriple() 69 std::string SysRoot = computeSysRoot(); in Hurd() local 82 const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot); in Hurd() 88 Generic_GCC::AddMultilibPaths(D, SysRoot, OSLibDir, MultiarchTriple, Paths); in Hurd() 95 if (StringRef(D.Dir).startswith(SysRoot)) { in Hurd() 100 addPathIfExists(D, SysRoot + "/lib/" + MultiarchTriple, Paths); in Hurd() 101 addPathIfExists(D, SysRoot + "/lib/../" + OSLibDir, Paths); in Hurd() 103 addPathIfExists(D, SysRoot + "/usr/lib/" + MultiarchTriple, Paths); in Hurd() 104 addPathIfExists(D, SysRoot + "/usr/lib/../" + OSLibDir, Paths); in Hurd() [all …]
|
D | Linux.cpp | 42 StringRef SysRoot) const { in getMultiarchTriple() 64 if (D.getVFS().exists(SysRoot + "/lib/arm-linux-gnueabihf")) in getMultiarchTriple() 67 if (D.getVFS().exists(SysRoot + "/lib/arm-linux-gnueabi")) in getMultiarchTriple() 74 if (D.getVFS().exists(SysRoot + "/lib/armeb-linux-gnueabihf")) in getMultiarchTriple() 77 if (D.getVFS().exists(SysRoot + "/lib/armeb-linux-gnueabi")) in getMultiarchTriple() 84 if (D.getVFS().exists(SysRoot + "/lib/i386-linux-gnu")) in getMultiarchTriple() 92 D.getVFS().exists(SysRoot + "/lib/x86_64-linux-gnu")) in getMultiarchTriple() 98 if (D.getVFS().exists(SysRoot + "/lib/aarch64-linux-gnu")) in getMultiarchTriple() 102 if (D.getVFS().exists(SysRoot + "/lib/aarch64_be-linux-gnu")) in getMultiarchTriple() 107 if (D.getVFS().exists(SysRoot + "/lib/" + MT)) in getMultiarchTriple() [all …]
|
D | WebAssembly.cpp | 31 StringRef SysRoot) { in getMultiarchTriple() argument 165 auto SysRoot = getDriver().SysRoot; in WebAssembly() local 171 getFilePaths().push_back(SysRoot + "/lib"); in WebAssembly() 174 getMultiarchTriple(getDriver(), Triple, SysRoot); in WebAssembly() 179 auto Dir = AppendLTOLibDir(SysRoot + "/lib/" + MultiarchTriple); in WebAssembly() 182 getFilePaths().push_back(SysRoot + "/lib/" + MultiarchTriple); in WebAssembly() 335 llvm::sys::path::is_absolute(dir) ? "" : StringRef(D.SysRoot); in AddClangSystemIncludeArgs() 343 getMultiarchTriple(D, getTriple(), D.SysRoot); in AddClangSystemIncludeArgs() 344 addSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/include/" + MultiarchTriple); in AddClangSystemIncludeArgs() 346 addSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/include"); in AddClangSystemIncludeArgs() [all …]
|
D | BareMetal.cpp | 36 SmallString<128> SysRoot(computeSysRoot()); in BareMetal() local 37 if (!SysRoot.empty()) { in BareMetal() 38 llvm::sys::path::append(SysRoot, "lib"); in BareMetal() 39 getFilePaths().push_back(std::string(SysRoot)); in BareMetal() 98 if (!getDriver().SysRoot.empty()) in computeSysRoot() 99 return getDriver().SysRoot; in computeSysRoot() 141 std::string SysRoot(computeSysRoot()); in AddClangCXXStdlibIncludeArgs() local 142 if (SysRoot.empty()) in AddClangCXXStdlibIncludeArgs() 147 SmallString<128> Dir(SysRoot); in AddClangCXXStdlibIncludeArgs() 153 SmallString<128> Dir(SysRoot); in AddClangCXXStdlibIncludeArgs()
|
D | CrossWindows.cpp | 84 if (!D.SysRoot.empty()) in ConstructJob() 85 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob() 238 const std::string &SysRoot = D.SysRoot; in AddClangSystemIncludeArgs() local 250 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/local/include"); in AddClangSystemIncludeArgs() 257 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); in AddClangSystemIncludeArgs() 263 const std::string &SysRoot = getDriver().SysRoot; in AddClangCXXStdlibIncludeArgs() local 270 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/c++/v1"); in AddClangCXXStdlibIncludeArgs()
|
D | Haiku.cpp | 27 getDriver().SysRoot + "/system/develop/headers/c++/v1"); in addLibCxxIncludePaths() 32 addLibStdCXXIncludePaths(getDriver().SysRoot, "/system/develop/headers/c++", in addLibStdCxxIncludePaths()
|
D | Fuchsia.cpp | 66 if (!D.SysRoot.empty()) in ConstructJob() 67 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob() 182 if (!D.SysRoot.empty()) { in Fuchsia() 183 SmallString<128> P(D.SysRoot); in Fuchsia() 314 llvm::sys::path::is_absolute(dir) ? "" : StringRef(D.SysRoot); in AddClangSystemIncludeArgs() 320 if (!D.SysRoot.empty()) { in AddClangSystemIncludeArgs() 321 SmallString<128> P(D.SysRoot); in AddClangSystemIncludeArgs()
|
D | Solaris.cpp | 195 if (StringRef(D.Dir).startswith(D.SysRoot)) in Solaris() 198 addPathIfExists(D, D.SysRoot + "/usr/lib" + LibSuffix, Paths); in Solaris() 231 addSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/usr/local/include"); in AddClangSystemIncludeArgs() 249 llvm::sys::path::is_absolute(dir) ? "" : StringRef(D.SysRoot); in AddClangSystemIncludeArgs() 266 addExternCSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/usr/include"); in AddClangSystemIncludeArgs()
|
D | MSP430.cpp | 136 if (!getDriver().SysRoot.empty()) in computeSysRoot() 137 return getDriver().SysRoot; in computeSysRoot() 240 static void AddImplicitLinkerScript(const std::string SysRoot, in AddImplicitLinkerScript() argument 255 SmallString<128> MCULinkerScriptPath(SysRoot); in AddImplicitLinkerScript() 303 AddImplicitLinkerScript(D.SysRoot, Args, CmdArgs); in ConstructJob()
|
D | OpenBSD.cpp | 251 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib"); in OpenBSD() 278 llvm::sys::path::is_absolute(dir) ? StringRef(D.SysRoot) : ""; in AddClangSystemIncludeArgs() 284 addExternCSystemInclude(DriverArgs, CC1Args, D.SysRoot + "/usr/include"); in AddClangSystemIncludeArgs() 290 getDriver().SysRoot + "/usr/include/c++/v1"); in addLibCxxIncludePaths() 304 SmallString<128> Path(getDriver().SysRoot); in getCompilerRT()
|
D | RISCVToolchain.cpp | 119 if (!getDriver().SysRoot.empty()) in computeSysRoot() 120 return getDriver().SysRoot; in computeSysRoot() 149 if (!D.SysRoot.empty()) in ConstructJob() 150 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
|
D | FreeBSD.cpp | 158 if (!D.SysRoot.empty()) in ConstructJob() 159 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob() 378 D.getVFS().exists(getDriver().SysRoot + "/usr/lib32/crt1.o")) in FreeBSD() 379 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib32"); in FreeBSD() 381 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib"); in FreeBSD() 399 getDriver().SysRoot + "/usr/include/c++/v1"); in addLibCxxIncludePaths() 405 addLibStdCXXIncludePaths(getDriver().SysRoot, "/usr/include/c++/4.2", "", "", in addLibStdCxxIncludePaths()
|
D | Ananas.cpp | 64 if (!D.SysRoot.empty()) in ConstructJob() 65 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob() 137 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib"); in Ananas()
|
D | Gnu.cpp | 409 if (!D.SysRoot.empty()) in ConstructJob() 410 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob() 1854 llvm::StringRef SysRoot) { in getGCCToolchainDir() argument 1862 if (!SysRoot.empty()) in getGCCToolchainDir() 1896 StringRef GCCToolchainDir = getGCCToolchainDir(Args, D.SysRoot); in init() 1904 if (!D.SysRoot.empty()) { in init() 1905 Prefixes.push_back(D.SysRoot); in init() 1906 AddDefaultGCCPrefixes(TargetTriple, Prefixes, D.SysRoot); in init() 1914 if (D.SysRoot.empty()) { in init() 1916 AddDefaultGCCPrefixes(TargetTriple, Prefixes, D.SysRoot); in init() [all …]
|
D | AIX.cpp | 179 getFilePaths().push_back(getDriver().SysRoot + "/usr/lib"); in AIX() 188 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot() 189 return getDriver().SysRoot; in GetHeaderSysroot()
|
D | Hexagon.cpp | 278 CmdArgs.push_back(Args.MakeArgString(D.SysRoot + "/usr/lib/crt1.o")); in constructHexagonLinkArgs() 281 CmdArgs.push_back(Args.MakeArgString(D.SysRoot + "/usr/lib/crti.o")); in constructHexagonLinkArgs() 284 Args.MakeArgString(StringRef("-L") + D.SysRoot + "/usr/lib")); in constructHexagonLinkArgs() 596 if (!D.SysRoot.empty()) { in AddClangSystemIncludeArgs() 597 SmallString<128> P(D.SysRoot); in AddClangSystemIncludeArgs() 615 if (!D.SysRoot.empty() && getTriple().isMusl()) in addLibCxxIncludePaths() 616 addLibStdCXXIncludePaths(D.SysRoot + "/usr/include/c++/v1", "", "", "", "", in addLibCxxIncludePaths()
|
D | Gnu.h | 262 StringRef SysRoot); 315 StringRef SysRoot) const in getMultiarchTriple() argument 328 void AddMultilibPaths(const Driver &D, const std::string &SysRoot, 332 void AddMultiarchPaths(const Driver &D, const std::string &SysRoot,
|
/external/clang/lib/Driver/ |
D | CrossWindowsToolChain.cpp | 23 const std::string &SysRoot = D.SysRoot; in CrossWindowsToolChain() local 27 getFilePaths().push_back(SysRoot + "/usr/lib"); in CrossWindowsToolChain() 28 getFilePaths().push_back(SysRoot + "/usr/lib/gcc"); in CrossWindowsToolChain() 54 const std::string &SysRoot = D.SysRoot; in AddClangSystemIncludeArgs() local 59 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/local/include"); in AddClangSystemIncludeArgs() 67 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); in AddClangSystemIncludeArgs() 74 const std::string &SysRoot = getDriver().SysRoot; in AddClangCXXStdlibIncludeArgs() local 82 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/c++/v1"); in AddClangCXXStdlibIncludeArgs() 86 addSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/c++"); in AddClangCXXStdlibIncludeArgs() 88 SysRoot + "/usr/include/c++/" + Triple.str()); in AddClangCXXStdlibIncludeArgs() [all …]
|
D | ToolChains.cpp | 1397 if (!D.SysRoot.empty()) { in init() 1398 Prefixes.push_back(D.SysRoot); in init() 1399 Prefixes.push_back(D.SysRoot + "/usr"); in init() 1406 if (D.SysRoot.empty()) { in init() 1761 CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda"); in init() 1764 CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda-7.5"); in init() 1765 CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda-7.0"); in init() 2860 if (!getDriver().SysRoot.empty()) in computeSysRoot() 2861 return getDriver().SysRoot + SelectedMultilib.osSuffix(); in computeSysRoot() 3365 getDriver().SysRoot + "/system/develop/headers/c++/v1"); in AddClangCXXStdlibIncludeArgs() [all …]
|
D | MinGWToolChain.cpp | 72 if (getDriver().SysRoot.size()) in MinGW() 73 Base = getDriver().SysRoot; in MinGW() 81 if (getDriver().SysRoot.size()) in MinGW() 82 Base = getDriver().SysRoot; in MinGW()
|
/external/llvm-project/clang/lib/IndexSerialization/ |
D | SerializablePathCollection.cpp | 40 StringRef CurrentWorkDir, StringRef SysRoot, llvm::StringRef OutputFile) in SerializablePathCollection() argument 42 SysRoot(llvm::sys::path::parent_path(SysRoot).empty() ? StringRef() in SerializablePathCollection() 43 : SysRoot), in SerializablePathCollection() 45 SysRootPath(Paths.addDirPath(SysRoot)), in SerializablePathCollection() 73 if (!SysRoot.empty() && Dir.startswith(SysRoot) && in tryStoreDirPath() 74 llvm::sys::path::is_separator(Dir[SysRoot.size()])) { in tryStoreDirPath() 75 Root = PathPool::RootDirKind::SysRoot; in tryStoreDirPath() 76 Dir = Dir.drop_front(SysRoot.size()); in tryStoreDirPath()
|
/external/clang/lib/Frontend/ |
D | DependencyGraph.cpp | 32 std::string SysRoot; member in __anon1fc4e0030111::DependencyGraphCallback 46 StringRef SysRoot) in DependencyGraphCallback() argument 47 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) { } in DependencyGraphCallback() 63 StringRef SysRoot) { in AttachDependencyGraphGen() argument 65 SysRoot)); in AttachDependencyGraphGen() 117 if (FileName.startswith(SysRoot)) in OutputGraphFile() 118 FileName = FileName.substr(SysRoot.size()); in OutputGraphFile()
|
/external/llvm-project/clang/lib/Frontend/ |
D | DependencyGraph.cpp | 31 std::string SysRoot; member in __anon2e58df310111::DependencyGraphCallback 45 StringRef SysRoot) in DependencyGraphCallback() argument 46 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) { } in DependencyGraphCallback() 63 StringRef SysRoot) { in AttachDependencyGraphGen() argument 65 SysRoot)); in AttachDependencyGraphGen() 119 if (FileName.startswith(SysRoot)) in OutputGraphFile() 120 FileName = FileName.substr(SysRoot.size()); in OutputGraphFile()
|
/external/llvm-project/clang/include/clang/IndexSerialization/ |
D | SerializablePathCollection.h | 50 SysRoot = 2, enumerator 88 std::string SysRoot; variable 100 llvm::StringRef SysRoot,
|
/external/llvm-project/llvm/lib/DWARFLinker/ |
D | DWARFLinkerCompileUnit.cpp | 33 if (SysRoot.empty()) { in getSysRoot() 35 SysRoot = dwarf::toStringRef(CU.find(dwarf::DW_AT_LLVM_sysroot)).str(); in getSysRoot() 37 return SysRoot; in getSysRoot()
|