diff options
author | Michael Pozulp <pozulp.llvm@gmail.com> | 2019-08-15 05:15:22 +0000 |
---|---|---|
committer | Michael Pozulp <pozulp.llvm@gmail.com> | 2019-08-15 05:15:22 +0000 |
commit | 9abf668c08b0a560d34c6388095bb7671055c751 (patch) | |
tree | c2124c22b775a8bee6c42bb37c1d44122b4b6a77 /llvm/lib/DebugInfo/DWARF | |
parent | 706cd705690b98b603362c6f1464795d95ea2db3 (diff) | |
download | bcm5719-llvm-9abf668c08b0a560d34c6388095bb7671055c751.tar.gz bcm5719-llvm-9abf668c08b0a560d34c6388095bb7671055c751.zip |
[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: RKSimon, MaskRay, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62462
llvm-svn: 368963
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index 2379ba66aa3..b18eb9f5989 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -1111,8 +1111,8 @@ DILineInfoTable DWARFContext::getLineInfoForAddressRange( if (!CU) return Lines; - std::string FunctionName = "<invalid>"; uint32_t StartLine = 0; + std::string FunctionName(DILineInfo::BadString); getFunctionNameAndStartLineForAddress(CU, Address.Address, Spec.FNKind, FunctionName, StartLine); |