]> granicus.if.org Git - clang/commitdiff
[Driver][Mips] MIPS ABI names "32" and "64" used as arguments of the "-mabi"
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 1 Jul 2014 10:59:09 +0000 (10:59 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 1 Jul 2014 10:59:09 +0000 (10:59 +0000)
command line option only. Internally we convert them to the "o32" and "n64"
respectively. So we do not need to refer them anywhere after that conversion.

No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212096 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
lib/Driver/Tools.cpp

index 34608f17a12ce31d3587ceb7a479050ad6233b5b..3ce8c3723a0cf458489f6338ff12c4b55dd33d2b 100644 (file)
@@ -5524,10 +5524,6 @@ public:
       ABI = Name;
       return true;
     }
-    if (Name == "32") {
-      ABI = "o32";
-      return true;
-    }
     return false;
   }
   void getTargetDefines(const LangOptions &Opts,
@@ -5663,9 +5659,9 @@ public:
       ABI = Name;
       return true;
     }
-    if (Name == "n64" || Name == "64") {
+    if (Name == "n64") {
       setN64ABITypes();
-      ABI = "n64";
+      ABI = Name;
       return true;
     }
     return false;
index 093c936fe5b11c6bd57a44088555bdc82ac15f31..c7211686e942787345f3e6c81042e547e1adee74 100644 (file)
@@ -950,8 +950,8 @@ static void getMipsCPUAndABI(const ArgList &Args,
   if (!ABIName.empty()) {
     // Deduce CPU name from ABI name.
     CPUName = llvm::StringSwitch<const char *>(ABIName)
-      .Cases("32", "o32", "eabi", DefMips32CPU)
-      .Cases("n32", "n64", "64", DefMips64CPU)
+      .Cases("o32", "eabi", DefMips32CPU)
+      .Cases("n32", "n64", DefMips64CPU)
       .Default("");
   }
   else if (!CPUName.empty()) {