r246260 - Instead of duplicating code, call the base implementation.
Eric Christopher via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 27 19:14:00 PDT 2015
Author: echristo
Date: Thu Aug 27 21:14:00 2015
New Revision: 246260
URL: http://llvm.org/viewvc/llvm-project?rev=246260&view=rev
Log:
Instead of duplicating code, call the base implementation.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=246260&r1=246259&r2=246260&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Thu Aug 27 21:14:00 2015
@@ -1071,13 +1071,7 @@ bool PPCTargetInfo::handleUserFeatures(l
}
}
- 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
More information about the cfe-commits
mailing list