]> granicus.if.org Git - clang/commitdiff
Instead of duplicating code, call the base implementation.
authorEric Christopher <echristo@gmail.com>
Fri, 28 Aug 2015 02:14:00 +0000 (02:14 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 28 Aug 2015 02:14:00 +0000 (02:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246260 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 76da995665fbd5deb30cffa4b852c337feb3ac3c..455bbeef9b0a15ab92c59ddef6647bdc2487b3db 100644 (file)
@@ -1071,13 +1071,7 @@ bool PPCTargetInfo::handleUserFeatures(llvm::StringMap<bool> &Features,
     }
   }
 
-  for (const auto &F : FAW) {
-    const char *Name = F.c_str();
-    // Apply the feature via the target.
-    bool Enabled = Name[0] == '+';
-    setFeatureEnabled(Features, Name + 1, Enabled);
-  }
-  return true;
+  return TargetInfo::handleUserFeatures(Features, FAW, Diags);
 }
 
 /// PPCTargetInfo::getTargetDefines - Return a set of the PowerPC-specific