19 static constexpr llvm::StringLiteral s_unknown_tag_name(
"<unknown DW_TAG>");
20 if (llvm::StringRef tag_name = llvm::dwarf::TagString(tag); !tag_name.empty())
23 return s_unknown_tag_name;
27 static char invalid[100];
28 llvm::StringRef llvmstr = llvm::dwarf::OperationEncodingString(val);
29 if (llvmstr.empty()) {
30 snprintf(invalid,
sizeof(invalid),
"Unknown DW_OP constant: 0x%x", val);
33 return llvmstr.data();
llvm::dwarf::Tag dw_tag_t
llvm::StringRef DW_TAG_value_to_name(dw_tag_t tag)
const char * DW_OP_value_to_name(uint32_t val)