| OLD | NEW |
| 1 //===--- ToolChains.cpp - ToolChain Implementations -----------------------===// | 1 //===--- ToolChains.cpp - ToolChain Implementations -----------------------===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 | 9 |
| 10 #include "ToolChains.h" | 10 #include "ToolChains.h" |
| (...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2297 case 3: | 2297 case 3: |
| 2298 return "v3"; | 2298 return "v3"; |
| 2299 case 2: | 2299 case 2: |
| 2300 return "v2"; | 2300 return "v2"; |
| 2301 case 1: | 2301 case 1: |
| 2302 return "v1"; | 2302 return "v1"; |
| 2303 } | 2303 } |
| 2304 } | 2304 } |
| 2305 // End Hexagon | 2305 // End Hexagon |
| 2306 | 2306 |
| 2307 // @LOCALMOD-START Emscripten |
| 2308 /// EmscriptenToolChain - A toolchain for the Emscripten C/C++ to JS compiler. |
| 2309 EmscriptenToolChain::EmscriptenToolChain(const Driver &D, |
| 2310 const llvm::Triple &Triple, |
| 2311 const ArgList &Args) |
| 2312 : ToolChain(D, Triple, Args) {} |
| 2313 EmscriptenToolChain::~EmscriptenToolChain() {} |
| 2314 bool EmscriptenToolChain::IsMathErrnoDefault() const { return false; } |
| 2315 bool EmscriptenToolChain::IsObjCNonFragileABIDefault() const { return true; } |
| 2316 bool EmscriptenToolChain::isPICDefault() const { return false; } |
| 2317 bool EmscriptenToolChain::isPIEDefault() const { return false; } |
| 2318 bool EmscriptenToolChain::isPICDefaultForced() const { return false; } |
| 2319 // @LOCALMOD-END Emscripten |
| 2320 |
| 2307 // @LOCALMOD-START | 2321 // @LOCALMOD-START |
| 2308 /// NaCl Toolchain | 2322 /// NaCl Toolchain |
| 2309 NaCl_TC::NaCl_TC(const Driver &D, const llvm::Triple &Triple, | 2323 NaCl_TC::NaCl_TC(const Driver &D, const llvm::Triple &Triple, |
| 2310 const ArgList &Args) | 2324 const ArgList &Args) |
| 2311 : Generic_ELF(D, Triple, Args) { | 2325 : Generic_ELF(D, Triple, Args) { |
| 2312 | 2326 |
| 2313 // Remove paths added by Generic_GCC. NaCl Toolchain cannot use the | 2327 // Remove paths added by Generic_GCC. NaCl Toolchain cannot use the |
| 2314 // default paths, and must instead only use the paths provided | 2328 // default paths, and must instead only use the paths provided |
| 2315 // with this toolchain based on architecture. | 2329 // with this toolchain based on architecture. |
| 2316 path_list& file_paths = getFilePaths(); | 2330 path_list& file_paths = getFilePaths(); |
| (...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3631 StringRef(cl_include_dir).split(Dirs, StringRef(EnvPathSeparatorStr)); | 3645 StringRef(cl_include_dir).split(Dirs, StringRef(EnvPathSeparatorStr)); |
| 3632 ArrayRef<StringRef> DirVec(Dirs); | 3646 ArrayRef<StringRef> DirVec(Dirs); |
| 3633 addSystemIncludes(DriverArgs, CC1Args, DirVec); | 3647 addSystemIncludes(DriverArgs, CC1Args, DirVec); |
| 3634 } | 3648 } |
| 3635 } | 3649 } |
| 3636 | 3650 |
| 3637 void XCore::AddCXXStdlibLibArgs(const ArgList &Args, | 3651 void XCore::AddCXXStdlibLibArgs(const ArgList &Args, |
| 3638 ArgStringList &CmdArgs) const { | 3652 ArgStringList &CmdArgs) const { |
| 3639 // We don't output any lib args. This is handled by xcc. | 3653 // We don't output any lib args. This is handled by xcc. |
| 3640 } | 3654 } |
| OLD | NEW |