mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
2e110c3fa6
In a failed attempt to allow the gnu-public-names.ll test case to not hardcode the size of the unit that the pubnames section referred to I've at least managed to have unit headers and pubnames headers print out in a similar style. This failed to achieve the desired goal because the header in a unit specifies the length of the unit without the length element of the header whereas the length in the pubnames includes this element, so the numbers are off by 4 bytes. I don't know of any arithmetic powers in FileCheck so the test case can't simply say "CU_LENGTH + 4". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193872 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
520 B
Plaintext
15 lines
520 B
Plaintext
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-pubnames.elf-x86-64 \
|
|
RUN: -debug-dump=pubnames | FileCheck %s
|
|
|
|
CHECK: .debug_pubnames contents:
|
|
CHECK: length = 0x000000a1 version = 0x0002 unit_offset = 0x00000000 unit_size = 0x00000141
|
|
|
|
CHECK: Offset Name
|
|
CHECK: 0x00000098 "global_namespace_variable"
|
|
CHECK: 0x000000a7 "global_namespace_function"
|
|
CHECK: 0x000000ec "static_member_function"
|
|
CHECK: 0x0000007c "global_variable"
|
|
CHECK: 0x00000103 "global_function"
|
|
CHECK: 0x000000c2 "member_function"
|
|
|