Reapply the changes reverted by r343236

llvm-svn: 343318
This commit is contained in:
Luke Cheeseman 2018-09-28 13:38:16 +00:00
parent 21f2955bb2
commit c564f5d4db
2 changed files with 3 additions and 3 deletions

View File

@ -504,9 +504,9 @@ const char *DW_MACINFO_value_to_name(uint32_t val) {
return llvmstr.data();
}
const char *DW_CFA_value_to_name(uint32_t val) {
const char *DW_CFA_value_to_name(uint32_t val, llvm::Triple::ArchType Arch) {
static char invalid[100];
llvm::StringRef llvmstr = llvm::dwarf::CallFrameString(val);
llvm::StringRef llvmstr = llvm::dwarf::CallFrameString(val, Arch);
if (llvmstr.empty()) {
snprintf(invalid, sizeof(invalid), "Unknown DW_CFA constant: 0x%x", val);
return invalid;

View File

@ -64,7 +64,7 @@ const char *DW_LNE_value_to_name(uint32_t val);
const char *DW_MACINFO_value_to_name(uint32_t val);
const char *DW_CFA_value_to_name(uint32_t val);
const char *DW_CFA_value_to_eame(uint32_t val, llvm::Triple::ArchType Arch);
const char *DW_GNU_EH_PE_value_to_name(uint32_t val);