1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[SubtargetFeatures] Don't call ApplyFeatureFlag if the feature name is '+help'

Just print the help and stop. Otherwise we'll print a message about it not being a real feature name after printing the help text.

llvm-svn: 355299
This commit is contained in:
Craig Topper 2019-03-04 02:02:24 +00:00
parent 040e5413b9
commit 6049fd1855

View File

@ -232,8 +232,8 @@ SubtargetFeatures::getFeatureBits(StringRef CPU,
// Check for help
if (Feature == "+help")
Help(CPUTable, FeatureTable);
ApplyFeatureFlag(Bits, Feature, FeatureTable);
else
ApplyFeatureFlag(Bits, Feature, FeatureTable);
}
return Bits;