diff options
author | Michael Pozulp <pozulp.llvm@gmail.com> | 2019-07-30 05:28:26 +0000 |
---|---|---|
committer | Michael Pozulp <pozulp.llvm@gmail.com> | 2019-07-30 05:28:26 +0000 |
commit | b1cbe51bdf44098c74f5c74b7bcd8c041a7c6772 (patch) | |
tree | 588f18be5fd52bedb0f539699d9df998de34a565 /llvm/tools/llvm-xray | |
parent | f940d859589faf3b769449be8d55304b0e2f0ba9 (diff) | |
download | llvm-b1cbe51bdf44098c74f5c74b7bcd8c041a7c6772.zip llvm-b1cbe51bdf44098c74f5c74b7bcd8c041a7c6772.tar.gz llvm-b1cbe51bdf44098c74f5c74b7bcd8c041a7c6772.tar.bz2 |
[llvm-objdump] Add warning messages if disassembly + source for problematic inputs
Summary: Addresses https://bugs.llvm.org/show_bug.cgi?id=41905
Reviewers: jhenderson, rupprecht, grimar
Reviewed By: jhenderson, grimar
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62462
llvm-svn: 367284
Diffstat (limited to 'llvm/tools/llvm-xray')
-rw-r--r-- | llvm/tools/llvm-xray/func-id-helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-xray/func-id-helper.cpp b/llvm/tools/llvm-xray/func-id-helper.cpp index dc821a4..afc912a 100644 --- a/llvm/tools/llvm-xray/func-id-helper.cpp +++ b/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; |