================ @@ -2037,6 +2037,25 @@ static char FindArmAarch64MappingSymbol(const char *symbol_name) { return '\0'; } +static char FindRISCVMappingSymbol(const char *symbol_name) { + if (!symbol_name) + return '\0'; + + if (strcmp(symbol_name, "$d") == 0) { + return 'd'; + } + if (strcmp(symbol_name, "$x") == 0) { + return 'x'; + } + return '\0'; +} +static bool IsRISCVArch(llvm::Triple::ArchType arch_machine) { ---------------- dmpots wrote:
We should use the existing function in `llvm::Triple` for this. Can replace calls to this function with`arch.GetTriple().isRISCV()`. https://github.com/llvm/llvm-project/pull/154809 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits