diff options
Diffstat (limited to 'contrib/llvm-project/llvm/tools/llvm-xray/func-id-helper.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/tools/llvm-xray/func-id-helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/tools/llvm-xray/func-id-helper.cpp b/contrib/llvm-project/llvm/tools/llvm-xray/func-id-helper.cpp index dc821a420c67..afc912a6398e 100644 --- a/contrib/llvm-project/llvm/tools/llvm-xray/func-id-helper.cpp +++ b/contrib/llvm-project/llvm/tools/llvm-xray/func-id-helper.cpp @@ -36,7 +36,7 @@ std::string FuncIdConversionHelper::SymbolOrNumber(int32_t FuncId) const { ModuleAddress.SectionIndex = object::SectionedAddress::UndefSection; if (auto ResOrErr = Symbolizer.symbolizeCode(BinaryInstrMap, ModuleAddress)) { auto &DI = *ResOrErr; - if (DI.FunctionName == "<invalid>") + if (DI.FunctionName == DILineInfo::BadString) F << "@(" << std::hex << It->second << ")"; else F << DI.FunctionName; |
