mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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:
parent
bcdb993025
commit
5ce6ef629e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user