]> granicus.if.org Git - clang/commitdiff
MIPS: Followup to r154606. Expand list of accepted MIPS target features in the MipsTa...
authorSimon Atanasyan <satanasyan@mips.com>
Wed, 18 Apr 2012 12:00:11 +0000 (12:00 +0000)
committerSimon Atanasyan <satanasyan@mips.com>
Wed, 18 Apr 2012 12:00:11 +0000 (12:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154998 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 5856d1ddfc6d75ac611d76962a9b42436ccafbdc..482cf8ffb50aac40d81c0c4868b8ecbe8b1d4031 100644 (file)
@@ -3555,7 +3555,10 @@ public:
   virtual bool setFeatureEnabled(llvm::StringMap<bool> &Features,
                                  StringRef Name,
                                  bool Enabled) const {
-    if (Name == "soft-float" || Name == "single-float") {
+    if (Name == "soft-float" || Name == "single-float" ||
+        Name == "o32" || Name == "n32" || Name == "n64" || Name == "eabi" ||
+        Name == "mips32" || Name == "mips32r2" ||
+        Name == "mips64" || Name == "mips64r2") {
       Features[Name] = Enabled;
       return true;
     }