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:
parent
040e5413b9
commit
6049fd1855
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user