1 # RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s
3 ## Check the name (preferring linkage name) of the DW_AT_call_origin DIE
4 ## reference is printed after the address.
6 # CHECK: DW_TAG_call_site
7 # CHECK-NEXT: DW_AT_call_origin (0x{{[0-9a-f]+}} "_Z2f2v")
9 # CHECK: DW_TAG_call_site
10 # CHECK-NEXT: DW_AT_call_origin (0x{{[0-9a-f]+}} "f1")
26 - Code: 0x0000000000000001
27 Tag: DW_TAG_compile_unit
28 Children: DW_CHILDREN_yes
30 - Attribute: DW_AT_low_pc
32 - Code: 0x0000000000000002
33 Tag: DW_TAG_subprogram
34 Children: DW_CHILDREN_yes
36 - Attribute: DW_AT_name
38 - Attribute: DW_AT_low_pc
40 - Attribute: DW_AT_high_pc
42 - Code: 0x0000000000000003
44 Children: DW_CHILDREN_no
46 - Attribute: DW_AT_call_origin
48 - Code: 0x0000000000000004
49 Tag: DW_TAG_subprogram
50 Children: DW_CHILDREN_no
52 - Attribute: DW_AT_linkage_name
54 - Attribute: DW_AT_name
56 - Attribute: DW_AT_declaration
57 Form: DW_FORM_flag_present
61 UnitType: 0x01 # DW_TU_compile
62 AbbrOffset: 0x0000000000000000
65 - AbbrCode: 0x00000001 # start compile unit
67 - Value: 0x0000000000000000 #
68 - AbbrCode: 0x00000002 ## start f1
70 - Value: 0x000000000000000a ##
71 - Value: 0x0000000000001000 ##
72 - Value: 0x0000000000002000 ##
73 - AbbrCode: 0x00000003 ### call site
75 - Value: 0x0000000000000035 ### (f2)
76 - AbbrCode: 0x00000003 ### call site
78 - Value: 0x0000000000000015 ### (f1)
79 - AbbrCode: 0x00000000 ## end f1
81 - AbbrCode: 0x00000004 ## f2
83 - Value: 0x0000000000000000 ##
84 - Value: 0x0000000000000007 ##
85 - AbbrCode: 0x00000000 # end compile unit