diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-10-19 17:57:53 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-10-19 17:57:53 +0000 |
| commit | 344cac5efdd90fa804b31e64d68e13e96852dcf5 (patch) | |
| tree | 4c31feee2541a755a1ae0d64d28b9aed5f3563c4 /llvm/lib/DebugInfo | |
| parent | 70daf85bc2ca8e826b73c41f236e96c17ea87e28 (diff) | |
| download | bcm5719-llvm-344cac5efdd90fa804b31e64d68e13e96852dcf5.tar.gz bcm5719-llvm-344cac5efdd90fa804b31e64d68e13e96852dcf5.zip | |
[dwarfdump] Hide ranges in diff-mode.
llvm-dwarfdump --diff should not print DW_AT_ranges. This patch fixes
that.
Differential revision: https://reviews.llvm.org/D53353
llvm-svn: 344794
Diffstat (limited to 'llvm/lib/DebugInfo')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDie.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp index 35567d0f67a..cf10c1134a7 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp @@ -59,12 +59,14 @@ static void dumpRanges(const DWARFObject &Obj, raw_ostream &OS, const DWARFAddressRangesVector &Ranges, unsigned AddressSize, unsigned Indent, const DIDumpOptions &DumpOpts) { + if (!DumpOpts.ShowAddresses) + return; + ArrayRef<SectionName> SectionNames; if (DumpOpts.Verbose) SectionNames = Obj.getSectionNames(); for (const DWARFAddressRange &R : Ranges) { - OS << '\n'; OS.indent(Indent); R.dump(OS, AddressSize); |

