Deleted Added
full compact
ToolChains.cpp (193326) ToolChains.cpp (195341)
1//===--- ToolChains.cpp - ToolChain Implementations ---------------------*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 370 unchanged lines hidden (view full) ---

379const char *Generic_GCC::GetForcedPicModel() const {
380 return 0;
381}
382
383DerivedArgList *Generic_GCC::TranslateArgs(InputArgList &Args) const {
384 return new DerivedArgList(Args, true);
385}
386
1//===--- ToolChains.cpp - ToolChain Implementations ---------------------*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 370 unchanged lines hidden (view full) ---

379const char *Generic_GCC::GetForcedPicModel() const {
380 return 0;
381}
382
383DerivedArgList *Generic_GCC::TranslateArgs(InputArgList &Args) const {
384 return new DerivedArgList(Args, true);
385}
386
387/// OpenBSD - OpenBSD tool chain which can call as(1) and ld(1) directly.
388
389OpenBSD::OpenBSD(const HostInfo &Host, const llvm::Triple& Triple)
390 : Generic_GCC(Host, Triple) {
391 getFilePaths().push_back(getHost().getDriver().Dir + "/../lib");
392 getFilePaths().push_back("/usr/lib");
393}
394
395Tool &OpenBSD::SelectTool(const Compilation &C, const JobAction &JA) const {
396 Action::ActionClass Key;
397 if (getHost().getDriver().ShouldUseClangCompiler(C, JA, getArchName()))
398 Key = Action::AnalyzeJobClass;
399 else
400 Key = JA.getKind();
401
402 Tool *&T = Tools[Key];
403 if (!T) {
404 switch (Key) {
405 case Action::AssembleJobClass:
406 T = new tools::openbsd::Assemble(*this); break;
407 case Action::LinkJobClass:
408 T = new tools::openbsd::Link(*this); break;
409 default:
410 T = &Generic_GCC::SelectTool(C, JA);
411 }
412 }
413
414 return *T;
415}
416
387/// FreeBSD - FreeBSD tool chain which can call as(1) and ld(1) directly.
388
389FreeBSD::FreeBSD(const HostInfo &Host, const llvm::Triple& Triple, bool Lib32)
390 : Generic_GCC(Host, Triple) {
391 if (Lib32) {
392 getFilePaths().push_back(getHost().getDriver().Dir + "/../lib32");
393 getFilePaths().push_back("/usr/lib32");
394 } else {

--- 81 unchanged lines hidden ---
417/// FreeBSD - FreeBSD tool chain which can call as(1) and ld(1) directly.
418
419FreeBSD::FreeBSD(const HostInfo &Host, const llvm::Triple& Triple, bool Lib32)
420 : Generic_GCC(Host, Triple) {
421 if (Lib32) {
422 getFilePaths().push_back(getHost().getDriver().Dir + "/../lib32");
423 getFilePaths().push_back("/usr/lib32");
424 } else {

--- 81 unchanged lines hidden ---