mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
ARM .req register name aliases are case insensitive, just like regnames.
llvm-svn: 147009
This commit is contained in:
parent
2e4f1786b1
commit
7baaa0fc64
@ -2325,9 +2325,10 @@ int ARMAsmParser::tryParseRegister() {
|
||||
.Default(0);
|
||||
}
|
||||
if (!RegNum) {
|
||||
// Check for aliases registered via .req.
|
||||
StringMap<unsigned>::const_iterator Entry =
|
||||
RegisterReqs.find(Tok.getIdentifier());
|
||||
// Check for aliases registered via .req. Canonicalize to lower case.
|
||||
// That's more consistent since register names are case insensitive, and
|
||||
// it's how the original entry was passed in from MC/MCParser/AsmParser.
|
||||
StringMap<unsigned>::const_iterator Entry = RegisterReqs.find(lowerCase);
|
||||
// If no match, return failure.
|
||||
if (Entry == RegisterReqs.end())
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user