mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
llvm-dwarfdump: Include unit count in DWP index header dumping
And add comma separators (to be consistent with recent changes/improvements to the dumping of other section headers) while I'm here.
This commit is contained in:
parent
7a293f5b3c
commit
60f7d5f8b7
@ -112,7 +112,7 @@ bool DWARFUnitIndex::Header::parse(DataExtractor IndexData,
|
||||
}
|
||||
|
||||
void DWARFUnitIndex::Header::dump(raw_ostream &OS) const {
|
||||
OS << format("version = %u slots = %u\n\n", Version, NumBuckets);
|
||||
OS << format("version = %u, units = %u, slots = %u\n\n", Version, NumUnits, NumBuckets);
|
||||
}
|
||||
|
||||
bool DWARFUnitIndex::parse(DataExtractor IndexData) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
# RUN: FileCheck %s --strict-whitespace
|
||||
|
||||
# CHECK: .debug_cu_index contents:
|
||||
# CHECK-NEXT: version = 2 slots = 2
|
||||
# CHECK-NEXT: version = 2, units = 1, slots = 2
|
||||
# CHECK-EMPTY:
|
||||
# CHECK-NEXT: Index Signature Unknown: 9 INFO
|
||||
# CHECK-NEXT: ----- ------------------ ------------------------ ------------------------
|
||||
|
@ -6,7 +6,7 @@
|
||||
# RUN: FileCheck %s
|
||||
|
||||
# CHECK: .debug_cu_index contents:
|
||||
# CHECK-NEXT: version = 2 slots = 2
|
||||
# CHECK-NEXT: version = 2, units = 1, slots = 2
|
||||
# CHECK-EMPTY:
|
||||
# CHECK-NEXT: Index Signature INFO ABBREV LINE LOC STR_OFFSETS MACINFO MACRO
|
||||
# CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------ ------------------------ ------------------------ ------------------------
|
||||
|
@ -6,7 +6,7 @@
|
||||
# RUN: FileCheck %s
|
||||
|
||||
# CHECK: .debug_tu_index contents:
|
||||
# CHECK-NEXT: version = 2 slots = 2
|
||||
# CHECK-NEXT: version = 2, units = 1, slots = 2
|
||||
# CHECK-EMPTY:
|
||||
# CHECK-NEXT: Index Signature TYPES ABBREV LINE STR_OFFSETS
|
||||
# CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------
|
||||
|
@ -6,7 +6,7 @@
|
||||
# RUN: FileCheck %s
|
||||
|
||||
# CHECK: .debug_cu_index contents:
|
||||
# CHECK-NEXT: version = 5 slots = 2
|
||||
# CHECK-NEXT: version = 5, units = 1, slots = 2
|
||||
# CHECK-EMPTY:
|
||||
# CHECK-NEXT: Index Signature INFO ABBREV LINE LOCLISTS STR_OFFSETS MACRO RNGLISTS
|
||||
# CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------ ------------------------ ------------------------ ------------------------
|
||||
|
@ -6,7 +6,7 @@
|
||||
# RUN: FileCheck %s
|
||||
|
||||
# CHECK: .debug_tu_index contents:
|
||||
# CHECK-NEXT: version = 5 slots = 2
|
||||
# CHECK-NEXT: version = 5, units = 1, slots = 2
|
||||
# CHECK-EMPTY:
|
||||
# CHECK-NEXT: Index Signature INFO ABBREV LINE STR_OFFSETS
|
||||
# CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------
|
||||
|
@ -37,14 +37,14 @@ RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-dwp.x86_64.o | FileCheck %s
|
||||
; CHECK: DW_AT_decl_file {{.*}} ("b.cpp")
|
||||
|
||||
; CHECK: .debug_cu_index contents:
|
||||
; CHECK-NEXT: version = 2 slots = 16
|
||||
; CHECK-NEXT: version = 2, units = 2, slots = 16
|
||||
; CHECK: Index Signature INFO ABBREV LINE STR_OFFSETS
|
||||
; CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------
|
||||
; CHECK-NEXT: 3 0xfef104c25502f092 [0x0000002d, 0x0000005f) [0x00000043, 0x0000008e) [0x0000001a, 0x00000034) [0x00000010, 0x00000024)
|
||||
; CHECK-NEXT: 9 0x03c30756e2d45008 [0x00000000, 0x0000002d) [0x00000000, 0x00000043) [0x00000000, 0x0000001a) [0x00000000, 0x00000010)
|
||||
|
||||
; CHECK: .debug_tu_index contents:
|
||||
; CHECK-NEXT: version = 2 slots = 16
|
||||
; CHECK-NEXT: version = 2, units = 2, slots = 16
|
||||
; CHECK: Index Signature TYPES ABBREV LINE STR_OFFSETS
|
||||
; CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------
|
||||
; CHECK-NEXT: 9 0x1d02f3be30cc5688 [0x00000024, 0x00000048) [0x00000043, 0x0000008e) [0x0000001a, 0x00000034) [0x00000010, 0x00000024)
|
||||
|
@ -9,7 +9,7 @@
|
||||
#CHECK: 0x00000000: Compile Unit: length = 0x00000050, format = DWARF32, version = 0x0005, unit_type = DW_UT_split_compile, abbr_offset = 0x0000, addr_size = 0x08, DWO_id = [[DWOID:.*]] (next unit at 0x00000054)
|
||||
|
||||
# CHECK-DAG: .debug_cu_index contents:
|
||||
# CHECK: version = 2 slots = 2
|
||||
# CHECK: version = 2, units = 1, slots = 2
|
||||
# CHECK: Index Signature INFO ABBREV
|
||||
# CHECK: 1 [[DWOID]] [0x00000000, 0x00000054) [0x00000000, 0x0000002a)
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
## identifiers is copied.
|
||||
|
||||
# CHECK: .debug_cu_index contents:
|
||||
# CHECK-NEXT: version = 2 slots = 2
|
||||
# CHECK-NEXT: version = 2, units = 1, slots = 2
|
||||
# CHECK: Index Signature INFO ABBREV
|
||||
# CHECK-NOT: Unknown
|
||||
# CHECK: -----
|
||||
@ -21,7 +21,7 @@
|
||||
# CHECK-NOT: [
|
||||
|
||||
# CHECK: .debug_tu_index contents:
|
||||
# CHECK-NEXT: version = 2 slots = 2
|
||||
# CHECK-NEXT: version = 2, units = 1, slots = 2
|
||||
# CHECK: Index Signature TYPES ABBREV
|
||||
# CHECK-NOT: Unknown
|
||||
# CHECK: -----
|
||||
|
Loading…
Reference in New Issue
Block a user