r213383 - [mips] Use Triple::getVendor() instead of Triple::getVendorName() to identify 'mti' vendor triples.

Daniel Sanders daniel.sanders at imgtec.com
Fri Jul 18 08:05:38 PDT 2014


Author: dsanders
Date: Fri Jul 18 10:05:38 2014
New Revision: 213383

URL: http://llvm.org/viewvc/llvm-project?rev=213383&view=rev
Log:
[mips] Use Triple::getVendor() instead of Triple::getVendorName() to identify 'mti' vendor triples.


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

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=213383&r1=213382&r2=213383&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Jul 18 10:05:38 2014
@@ -5327,7 +5327,7 @@ bool mips::isNaN2008(const ArgList &Args
 bool mips::isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName,
                          StringRef ABIName) {
   if (Triple.getVendor() != llvm::Triple::ImaginationTechnologies &&
-      Triple.getVendorName() != "mti")
+      Triple.getVendor() != llvm::Triple::MipsTechnologies)
     return false;
 
   if (ABIName != "32")





More information about the cfe-commits mailing list