[Lldb-commits] [lldb] [lldb][LoongArch] Complete register alias name in `AugmentRegisterInfo` (PR #124059)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 23 01:38:49 PST 2025
================
@@ -644,32 +644,22 @@ void ABISysV_loongarch::AugmentRegisterInfo(
std::vector<lldb_private::DynamicRegisterInfo::Register> ®s) {
lldb_private::RegInfoBasedABI::AugmentRegisterInfo(regs);
+ static const std::unordered_map<std::string, std::string> reg_aliases = {
----------------
DavidSpickett wrote:
There is `llvm/include/llvm/ADT/StringMap.h` for these sorts of purposes. We only do this once on process start but given it's the more "specific" type to LLVM you might as well use it.
https://github.com/llvm/llvm-project/pull/124059
More information about the lldb-commits
mailing list