summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2013-11-26 11:57:09 +0000
committerSimon Atanasyan <simon@atanasyan.com>2013-11-26 11:57:09 +0000
commit54f3f9398865f6c143ea072dc6e1f90abca29006 (patch)
tree5eb637ccf1d4a18384dc361b4d6ec1d44e6c719b /clang
parent895454e1e418947d5f031509236c73bfe5009641 (diff)
downloadbcm5719-llvm-54f3f9398865f6c143ea072dc6e1f90abca29006.tar.gz
bcm5719-llvm-54f3f9398865f6c143ea072dc6e1f90abca29006.zip
[Mips] Call findMIPSABIDirSuffix() for MIPS targets only.
llvm-svn: 195750
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Driver/ToolChains.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 09afc1e02ee..b5f4c19b5c0 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -1386,9 +1386,6 @@ static bool findTargetBiarchSuffix(std::string &Suffix, StringRef Path,
void Generic_GCC::GCCInstallationDetector::findMIPSABIDirSuffix(
std::string &Suffix, llvm::Triple::ArchType TargetArch, StringRef Path,
const llvm::opt::ArgList &Args) {
- if (!isMipsArch(TargetArch))
- return;
-
// Some MIPS toolchains put libraries and object files compiled
// using different options in to the sub-directoris which names
// reflects the flags used for compilation. For example sysroot
@@ -1523,7 +1520,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
continue;
std::string MIPSABIDirSuffix;
- findMIPSABIDirSuffix(MIPSABIDirSuffix, TargetArch, LI->path(), Args);
+ if (isMipsArch(TargetArch))
+ findMIPSABIDirSuffix(MIPSABIDirSuffix, TargetArch, LI->path(), Args);
// Some versions of SUSE and Fedora on ppc64 put 32-bit libs
// in what would normally be GCCInstallPath and put the 64-bit
OpenPOWER on IntegriCloud