r195750 - [Mips] Call findMIPSABIDirSuffix() for MIPS targets only.

Simon Atanasyan simon at atanasyan.com
Tue Nov 26 03:57:09 PST 2013


Author: atanasyan
Date: Tue Nov 26 05:57:09 2013
New Revision: 195750

URL: http://llvm.org/viewvc/llvm-project?rev=195750&view=rev
Log:
[Mips] Call findMIPSABIDirSuffix() for MIPS targets only.

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=195750&r1=195749&r2=195750&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Tue Nov 26 05:57:09 2013
@@ -1386,9 +1386,6 @@ static bool findTargetBiarchSuffix(std::
 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::GCCInstallationDetecto
         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





More information about the cfe-commits mailing list