[llvm] 6aed60c - [DebugInfo] Report the format of .debug_names [2/10]
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 03:57:06 PDT 2020
Author: Igor Kudrin
Date: 2020-06-02T17:55:30+07:00
New Revision: 6aed60c01c5a0b1258c58ced8737ac9aebe2fc43
URL: https://github.com/llvm/llvm-project/commit/6aed60c01c5a0b1258c58ced8737ac9aebe2fc43
DIFF: https://github.com/llvm/llvm-project/commit/6aed60c01c5a0b1258c58ced8737ac9aebe2fc43.diff
LOG: [DebugInfo] Report the format of .debug_names [2/10]
Differential Revision: https://reviews.llvm.org/D80523
Added:
Modified:
llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
llvm/test/DebugInfo/X86/dwarfdump-debug-names.s
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp b/llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
index a089263f3e5c..28d35b609c24 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
@@ -365,6 +365,7 @@ AppleAcceleratorTable::equal_range(StringRef Key) const {
void DWARFDebugNames::Header::dump(ScopedPrinter &W) const {
DictScope HeaderScope(W, "Header");
W.printHex("Length", UnitLength);
+ W.printString("Format", dwarf::FormatString(Format));
W.printNumber("Version", Version);
W.printNumber("CU count", CompUnitCount);
W.printNumber("Local TU count", LocalTypeUnitCount);
diff --git a/llvm/test/DebugInfo/X86/dwarfdump-debug-names.s b/llvm/test/DebugInfo/X86/dwarfdump-debug-names.s
index cc3de5dcc967..009a87325e8b 100644
--- a/llvm/test/DebugInfo/X86/dwarfdump-debug-names.s
+++ b/llvm/test/DebugInfo/X86/dwarfdump-debug-names.s
@@ -137,6 +137,7 @@
# CHECK-NEXT: Name Index @ 0x0 {
# CHECK-NEXT: Header {
# CHECK-NEXT: Length: 0x60
+# CHECK-NEXT: Format: DWARF32
# CHECK-NEXT: Version: 5
# CHECK-NEXT: CU count: 1
# CHECK-NEXT: Local TU count: 0
@@ -182,6 +183,7 @@
# CHECK-NEXT: Name Index @ 0x64 {
# CHECK-NEXT: Header {
# CHECK-NEXT: Length: 0x44
+# CHECK-NEXT: Format: DWARF32
# CHECK-NEXT: Version: 5
# CHECK-NEXT: CU count: 1
# CHECK-NEXT: Local TU count: 0
@@ -215,6 +217,7 @@
# CHECK-NEXT: Name Index @ 0xac {
# CHECK-NEXT: Header {
# CHECK-NEXT: Length: 0x68
+# CHECK-NEXT: Format: DWARF64
# CHECK-NEXT: Version: 5
# CHECK-NEXT: CU count: 1
# CHECK-NEXT: Local TU count: 1
More information about the llvm-commits
mailing list