[llvm] r284539 - dwarfdump: Include the name in the unit description, even in non-summarized mode

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 14:16:45 PDT 2016


Author: dblaikie
Date: Tue Oct 18 16:16:45 2016
New Revision: 284539

URL: http://llvm.org/viewvc/llvm-project?rev=284539&view=rev
Log:
dwarfdump: Include the name in the unit description, even in non-summarized mode

(accidentally removed this from my previous change when I was rejecting
some clang-format formatting... )

Modified:
    llvm/trunk/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp

Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp?rev=284539&r1=284538&r2=284539&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp Tue Oct 18 16:16:45 2016
@@ -45,6 +45,7 @@ void DWARFTypeUnit::dump(raw_ostream &OS
      << " version = " << format("0x%04x", getVersion())
      << " abbr_offset = " << format("0x%04x", getAbbreviations()->getOffset())
      << " addr_size = " << format("0x%02x", getAddressByteSize())
+     << "name = '" << Name << "'"
      << " type_signature = " << format("0x%16" PRIx64, TypeHash)
      << " type_offset = " << format("0x%04x", TypeOffset)
      << " (next unit at " << format("0x%08x", getNextUnitOffset()) << ")\n";




More information about the llvm-commits mailing list