2014-11-15 00:15:53 +08:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s
|
|
|
|
|
|
|
|
Gather some DIE indexes to verify the accelerator table contents.
|
|
|
|
CHECK: .debug_info contents
|
|
|
|
CHECK: [[TESTINTERFACE:0x[0-9a-f]*]]:{{.*}}DW_TAG_structure_type
|
|
|
|
CHECK-NOT: DW_TAG
|
|
|
|
CHECK: DW_AT_name{{.*}}"TestInterface"
|
|
|
|
CHECK: [[READONLY:0x[0-9a-f]*]]:{{.*}}DW_TAG_subprogram
|
|
|
|
CHECK-NOT: DW_TAG
|
|
|
|
CHECK: DW_AT_name{{.*}}"-[TestInterface ReadOnly]"
|
|
|
|
CHECK: [[ASSIGN:0x[0-9a-f]*]]:{{.*}}DW_TAG_subprogram
|
|
|
|
CHECK-NOT: DW_TAG
|
|
|
|
CHECK: DW_AT_name{{.*}}"-[TestInterface Assign]"
|
|
|
|
CHECK: [[SETASSIGN:0x[0-9a-f]*]]:{{.*}}DW_TAG_subprogram
|
|
|
|
CHECK-NOT: DW_TAG
|
|
|
|
CHECK: DW_AT_name{{.*}}"-[TestInterface setAssign:]"
|
|
|
|
|
|
|
|
|
|
|
|
Check that the section header is printed correclty.
|
|
|
|
CHECK: .apple_names contents:
|
|
|
|
CHECK: Magic = 0x48415348
|
|
|
|
CHECK: Version = 0x0001
|
|
|
|
CHECK: Hash function = 0x00000000
|
2016-07-14 08:41:18 +08:00
|
|
|
CHECK: Bucket count = 21
|
|
|
|
CHECK: Hashes count = 42
|
2014-11-15 00:15:53 +08:00
|
|
|
CHECK: HeaderData length = 12
|
|
|
|
CHECK: DIE offset base = 0
|
|
|
|
CHECK: Number of atoms = 1
|
|
|
|
CHECK: Atom[0] Type: DW_ATOM_die_offset Form: DW_FORM_data4
|
|
|
|
|
2016-07-14 08:41:18 +08:00
|
|
|
Check that the accelerators point to the right DIEs.
|
|
|
|
CHECK: Name:{{.*}}"-[TestInterface ReadOnly]"
|
|
|
|
CHECK-NOT: Name
|
|
|
|
CHECK: {Atom[0]: [[READONLY]]}
|
|
|
|
|
2014-11-15 00:15:53 +08:00
|
|
|
Check that empty buckets are handled correctly.
|
|
|
|
CHECK: Bucket[3]
|
2016-07-14 08:41:18 +08:00
|
|
|
CHECK: EMPTY
|
|
|
|
CHECK: Bucket[4]
|
2014-11-15 00:15:53 +08:00
|
|
|
|
|
|
|
Check that the accelerators point to the right DIEs.
|
2016-07-14 08:41:18 +08:00
|
|
|
CHECK: Name:{{.*}}"-[TestInterface Assign]"
|
2014-11-15 00:15:53 +08:00
|
|
|
CHECK-NOT: Name
|
2016-07-14 08:41:18 +08:00
|
|
|
CHECK: {Atom[0]: [[ASSIGN]]}
|
2014-11-15 00:15:53 +08:00
|
|
|
CHECK: Name:{{.*}}"-[TestInterface setAssign:]"
|
|
|
|
CHECK-NOT: Name
|
|
|
|
CHECK: {Atom[0]: [[SETASSIGN]]}
|
|
|
|
|
|
|
|
Check that types are referenced correctly.
|
|
|
|
CHECK: .apple_types contents:
|
|
|
|
CHECK: Name{{.*}}"TestInterface"
|
|
|
|
CHECK-NOT: Name
|
|
|
|
CHECK: {Atom[0]: [[TESTINTERFACE]]}
|
|
|
|
|
2016-07-14 08:41:18 +08:00
|
|
|
Check that an empty accelerator section is handled correctly.
|
2014-11-15 00:15:53 +08:00
|
|
|
CHECK: .apple_namespaces contents:
|
|
|
|
CHECK-NOT: Magic
|
|
|
|
|
|
|
|
Check ObjC specific accelerators.
|
|
|
|
CHECK: .apple_objc contents:
|
|
|
|
CHECK: Name{{.*}}"TestInterface"
|
2015-08-11 03:01:27 +08:00
|
|
|
CHECK-NOT: Name
|
2014-11-15 00:15:53 +08:00
|
|
|
CHECK: {Atom[0]: [[READONLY]]}
|
|
|
|
CHECK: {Atom[0]: [[ASSIGN]]}
|
|
|
|
CHECK: {Atom[0]: [[SETASSIGN]]}
|