[llvm] 24e791b - [ARM] Use MCRegister instead of unsigned for RegisterReqs in ARMAsmParser.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 29 23:18:03 PDT 2024
Author: Craig Topper
Date: 2024-08-29T23:17:52-07:00
New Revision: 24e791b4164986a1ca7776e3ae0292ef20d20c47
URL: https://github.com/llvm/llvm-project/commit/24e791b4164986a1ca7776e3ae0292ef20d20c47
DIFF: https://github.com/llvm/llvm-project/commit/24e791b4164986a1ca7776e3ae0292ef20d20c47.diff
LOG: [ARM] Use MCRegister instead of unsigned for RegisterReqs in ARMAsmParser.
Added:
Modified:
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 1b6405c93820fc..8b8452a2b78c80 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -247,7 +247,7 @@ class ARMAsmParser : public MCTargetAsmParser {
}
// Map of register aliases registers via the .req directive.
- StringMap<unsigned> RegisterReqs;
+ StringMap<MCRegister> RegisterReqs;
bool NextSymbolIsThumb;
@@ -4253,7 +4253,7 @@ int ARMAsmParser::tryParseRegister(bool AllowOutOfBoundReg) {
// 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);
+ auto Entry = RegisterReqs.find(lowerCase);
// If no match, return failure.
if (Entry == RegisterReqs.end())
return -1;
More information about the llvm-commits
mailing list