Convert feature strings to lowercase even if they have a '+'/'-' in front of them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233475 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2015-03-28 04:59:14 +00:00
parent bcdb993025
commit 5ce6ef629e

View File

@ -85,7 +85,7 @@ void SubtargetFeatures::AddFeature(StringRef String) {
// Don't add empty features.
if (!String.empty())
// Convert to lowercase, prepend flag if we don't already have a flag.
Features.push_back(hasFlag(String) ? String.str() : "+" + String.lower());
Features.push_back(hasFlag(String) ? String.lower() : "+" + String.lower());
}
/// Find KV in array using binary search.