blob: 1696288eed5c90656ebafb8e26776c498c5d77b3 [file] [log] [blame]
David Blaikie404d3042013-09-19 23:01:29 +00001; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-gnu-dwarf-pub-sections < %s | FileCheck -check-prefix=ASM %s
2; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-gnu-dwarf-pub-sections -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s
Eric Christopherdd1a0122013-09-13 00:35:05 +00003; ModuleID = 'dwarf-public-names.cpp'
4;
5; Generated from:
6;
7; struct C {
8; void member_function();
9; static int static_member_function();
10; static int static_member_variable;
11; };
12;
13; int C::static_member_variable = 0;
14;
15; void C::member_function() {
16; static_member_variable = 0;
17; }
18;
19; int C::static_member_function() {
20; return static_member_variable;
21; }
22;
23; C global_variable;
24;
25; int global_function() {
26; return -1;
27; }
28;
29; namespace ns {
30; void global_namespace_function() {
31; global_variable.member_function();
32; }
33; int global_namespace_variable = 1;
Eric Christopher2c8b7902013-10-17 02:06:06 +000034; struct D {
35; int A;
36; } d;
Eric Christopherdd1a0122013-09-13 00:35:05 +000037; }
38
Eric Christopher261d2342013-09-23 20:55:35 +000039; ASM: .section .debug_gnu_pubnames
David Blaikie404d3042013-09-19 23:01:29 +000040; ASM: .byte 32 # Kind: VARIABLE, EXTERNAL
Eric Christopher2c8b7902013-10-17 02:06:06 +000041; ASM-NEXT: .asciz "global_variable" # External Name
David Blaikie404d3042013-09-19 23:01:29 +000042
Eric Christopher261d2342013-09-23 20:55:35 +000043; ASM: .section .debug_gnu_pubtypes
44; ASM: .byte 16 # Kind: TYPE, EXTERNAL
David Blaikieecd21ff2013-09-24 19:50:00 +000045; ASM-NEXT: .asciz "C" # External Name
Eric Christopher261d2342013-09-23 20:55:35 +000046
David Blaikieac30f9e2013-09-19 23:43:46 +000047; CHECK: .debug_info contents:
David Blaikiefcf31a72014-06-06 18:45:14 +000048; CHECK: Compile Unit:
David Blaikie47c254b2014-03-06 05:47:39 +000049; CHECK: DW_AT_GNU_pubnames [DW_FORM_flag_present] (true)
50; CHECK-NOT: DW_AT_GNU_pubtypes [
Eric Christopherd2b497b2013-10-16 01:37:49 +000051
David Blaikie49cfc8c2014-10-23 19:12:43 +000052; CHECK: [[STATIC_MEM_VAR:0x[0-9a-f]+]]: DW_TAG_variable
53; CHECK-NEXT: DW_AT_specification {{.*}} "static_member_variable"
54
David Blaikiefcf31a72014-06-06 18:45:14 +000055; CHECK: [[C:0x[0-9a-f]+]]: DW_TAG_structure_type
David Blaikieecd21ff2013-09-24 19:50:00 +000056; CHECK-NEXT: DW_AT_name {{.*}} "C"
Eric Christopherd2b497b2013-10-16 01:37:49 +000057
Frederic Rissd4de1802014-10-10 15:51:02 +000058; CHECK: DW_TAG_member
Eric Christopherd2b497b2013-10-16 01:37:49 +000059; CHECK-NEXT: DW_AT_name {{.*}} "static_member_variable"
60
Frederic Rissd1cfc3c2014-10-06 03:36:31 +000061; CHECK: DW_TAG_subprogram
David Blaikieac30f9e2013-09-19 23:43:46 +000062; CHECK-NEXT: DW_AT_MIPS_linkage_name
63; CHECK-NEXT: DW_AT_name {{.*}} "member_function"
Eric Christopherd2b497b2013-10-16 01:37:49 +000064
Frederic Rissd1cfc3c2014-10-06 03:36:31 +000065; CHECK: DW_TAG_subprogram
David Blaikieac30f9e2013-09-19 23:43:46 +000066; CHECK-NEXT: DW_AT_MIPS_linkage_name
67; CHECK-NEXT: DW_AT_name {{.*}} "static_member_function"
Eric Christopherd2b497b2013-10-16 01:37:49 +000068
David Blaikiefcf31a72014-06-06 18:45:14 +000069; CHECK: [[INT:0x[0-9a-f]+]]: DW_TAG_base_type
Manman Renf4c339e2013-10-29 22:49:29 +000070; CHECK-NEXT: DW_AT_name {{.*}} "int"
71
David Blaikiefcf31a72014-06-06 18:45:14 +000072; CHECK: [[GLOB_VAR:0x[0-9a-f]+]]: DW_TAG_variable
David Blaikieac30f9e2013-09-19 23:43:46 +000073; CHECK-NEXT: DW_AT_name {{.*}} "global_variable"
Eric Christopherd2b497b2013-10-16 01:37:49 +000074
David Blaikiefcf31a72014-06-06 18:45:14 +000075; CHECK: [[NS:0x[0-9a-f]+]]: DW_TAG_namespace
Eric Christopherd2b497b2013-10-16 01:37:49 +000076; CHECK-NEXT: DW_AT_name {{.*}} "ns"
77
David Blaikie49cfc8c2014-10-23 19:12:43 +000078; CHECK: [[GLOB_NS_VAR:0x[0-9a-f]+]]: DW_TAG_variable
David Blaikieac30f9e2013-09-19 23:43:46 +000079; CHECK-NEXT: DW_AT_name {{.*}} "global_namespace_variable"
David Blaikie49cfc8c2014-10-23 19:12:43 +000080; CHECK-NOT: DW_AT_specification
81; CHECK: DW_AT_location
82; CHECK-NOT: DW_AT_specification
Eric Christopherd2b497b2013-10-16 01:37:49 +000083
David Blaikie49cfc8c2014-10-23 19:12:43 +000084; CHECK: [[D_VAR:0x[0-9a-f]+]]: DW_TAG_variable
Eric Christopher2c8b7902013-10-17 02:06:06 +000085; CHECK-NEXT: DW_AT_name {{.*}} "d"
David Blaikie49cfc8c2014-10-23 19:12:43 +000086; CHECK-NOT: DW_AT_specification
87; CHECK: DW_AT_location
88; CHECK-NOT: DW_AT_specification
Eric Christopher2c8b7902013-10-17 02:06:06 +000089
David Blaikiefcf31a72014-06-06 18:45:14 +000090; CHECK: [[D:0x[0-9a-f]+]]: DW_TAG_structure_type
Manman Renf6b936b2013-10-29 05:49:41 +000091; CHECK-NEXT: DW_AT_name {{.*}} "D"
92
David Blaikiefcf31a72014-06-06 18:45:14 +000093; CHECK: [[GLOB_NS_FUNC:0x[0-9a-f]+]]: DW_TAG_subprogram
David Blaikie2f753512014-05-23 21:11:46 +000094; CHECK-NOT: DW_TAG
95; CHECK: DW_AT_MIPS_linkage_name
96; CHECK-NOT: DW_TAG
97; CHECK: DW_AT_name {{.*}} "global_namespace_function"
Eric Christopherd2b497b2013-10-16 01:37:49 +000098
David Blaikie553eb4a2014-06-06 22:16:56 +000099; CHECK: DW_TAG_subprogram
100; CHECK-NOT: DW_TAG
101; CHECK: DW_AT_name {{.*}} "f3"
102; CHECK-NOT: {{DW_TAG|NULL}}
103; CHECK: [[F3_Z:.*]]: DW_TAG_variable
104; CHECK-NOT: DW_TAG
105; CHECK: DW_AT_name {{.*}} "z"
106; CHECK-NOT: {{DW_TAG|NULL}}
107; CHECK: DW_AT_location
108; CHECK-NOT: {{DW_TAG|NULL}}
109; CHECK: NULL
110; CHECK-NOT: {{DW_TAG|NULL}}
111
112; CHECK: [[OUTER:.*]]: DW_TAG_namespace
113; CHECK-NOT: DW_TAG
114; CHECK: DW_AT_name {{.*}} "outer"
115; CHECK-NOT: {{DW_TAG|NULL}}
116; CHECK: [[OUTER_ANON:.*]]: DW_TAG_namespace
117; CHECK-NOT: {{DW_TAG|NULL}}
118; CHECK-NOT: DW_AT_name
David Blaikie49cfc8c2014-10-23 19:12:43 +0000119; CHECK: [[OUTER_ANON_C:.*]]: DW_TAG_variable
David Blaikie553eb4a2014-06-06 22:16:56 +0000120; CHECK-NOT: DW_TAG
121; CHECK: DW_AT_name {{.*}} "c"
122; CHECK-NOT: {{DW_TAG|NULL}}
123; CHECK: NULL
124; CHECK-NOT: {{DW_TAG|NULL}}
125; FIXME: We probably shouldn't bother describing the implicit
Alp Toker5c536392014-06-07 21:23:09 +0000126; import of the preceding anonymous namespace. This should be fixed
David Blaikie553eb4a2014-06-06 22:16:56 +0000127; in clang.
128; CHECK: DW_TAG_imported_module
129; CHECK-NOT: {{DW_TAG|NULL}}
130; CHECK: NULL
131; CHECK-NOT: {{DW_TAG|NULL}}
David Blaikie553eb4a2014-06-06 22:16:56 +0000132
133; CHECK: [[ANON:.*]]: DW_TAG_namespace
134; CHECK-NOT: DW_AT_name
135; CHECK: [[ANON_INNER:.*]]: DW_TAG_namespace
136; CHECK-NOT: DW_TAG
137; CHECK: DW_AT_name {{.*}} "inner"
138; CHECK-NOT: {{DW_TAG|NULL}}
David Blaikie49cfc8c2014-10-23 19:12:43 +0000139; CHECK: [[ANON_INNER_B:.*]]: DW_TAG_variable
David Blaikie553eb4a2014-06-06 22:16:56 +0000140; CHECK-NOT: DW_TAG
141; CHECK: DW_AT_name {{.*}} "b"
142; CHECK-NOT: {{DW_TAG|NULL}}
143; CHECK: NULL
144; CHECK-NOT: {{DW_TAG|NULL}}
David Blaikie49cfc8c2014-10-23 19:12:43 +0000145; CHECK: [[ANON_I:.*]]: DW_TAG_variable
David Blaikie553eb4a2014-06-06 22:16:56 +0000146; CHECK-NOT: DW_TAG
147; CHECK: DW_AT_name {{.*}} "i"
148; CHECK-NOT: {{DW_TAG|NULL}}
149; CHECK: NULL
150; CHECK-NOT: {{DW_TAG|NULL}}
David Blaikie553eb4a2014-06-06 22:16:56 +0000151
David Blaikiefcf31a72014-06-06 18:45:14 +0000152; CHECK: [[MEM_FUNC:0x[0-9a-f]+]]: DW_TAG_subprogram
David Blaikie2f753512014-05-23 21:11:46 +0000153; CHECK-NOT: DW_TAG
Frederic Rissd1cfc3c2014-10-06 03:36:31 +0000154; CHECK: DW_AT_specification {{.*}} "_ZN1C15member_functionEv"
Eric Christopherd2b497b2013-10-16 01:37:49 +0000155
David Blaikiefcf31a72014-06-06 18:45:14 +0000156; CHECK: [[STATIC_MEM_FUNC:0x[0-9a-f]+]]: DW_TAG_subprogram
David Blaikie2f753512014-05-23 21:11:46 +0000157; CHECK-NOT: DW_TAG
Frederic Rissd1cfc3c2014-10-06 03:36:31 +0000158; CHECK: DW_AT_specification {{.*}} "_ZN1C22static_member_functionEv"
Eric Christopherd2b497b2013-10-16 01:37:49 +0000159
David Blaikiefcf31a72014-06-06 18:45:14 +0000160; CHECK: [[GLOBAL_FUNC:0x[0-9a-f]+]]: DW_TAG_subprogram
David Blaikie2f753512014-05-23 21:11:46 +0000161; CHECK-NOT: DW_TAG
162; CHECK: DW_AT_MIPS_linkage_name
163; CHECK-NOT: DW_TAG
164; CHECK: DW_AT_name {{.*}} "global_function"
David Blaikieac30f9e2013-09-19 23:43:46 +0000165
166; CHECK-LABEL: .debug_gnu_pubnames contents:
David Blaikiefcf31a72014-06-06 18:45:14 +0000167; CHECK-NEXT: length = {{.*}} version = 0x0002 unit_offset = 0x00000000 unit_size = {{.*}}
David Blaikie404d3042013-09-19 23:01:29 +0000168; CHECK-NEXT: Offset Linkage Kind Name
Eric Christopherd2b497b2013-10-16 01:37:49 +0000169; CHECK-DAG: [[GLOBAL_FUNC]] EXTERNAL FUNCTION "global_function"
Eric Christopher2c8b7902013-10-17 02:06:06 +0000170; CHECK-DAG: [[NS]] EXTERNAL TYPE "ns"
171; CHECK-DAG: [[MEM_FUNC]] EXTERNAL FUNCTION "C::member_function"
172; CHECK-DAG: [[GLOB_VAR]] EXTERNAL VARIABLE "global_variable"
173; CHECK-DAG: [[GLOB_NS_VAR]] EXTERNAL VARIABLE "ns::global_namespace_variable"
174; CHECK-DAG: [[GLOB_NS_FUNC]] EXTERNAL FUNCTION "ns::global_namespace_function"
175; CHECK-DAG: [[D_VAR]] EXTERNAL VARIABLE "ns::d"
176; CHECK-DAG: [[STATIC_MEM_VAR]] EXTERNAL VARIABLE "C::static_member_variable"
177; CHECK-DAG: [[STATIC_MEM_FUNC]] EXTERNAL FUNCTION "C::static_member_function"
David Blaikie553eb4a2014-06-06 22:16:56 +0000178; CHECK-DAG: [[ANON]] EXTERNAL TYPE "(anonymous namespace)"
179; CHECK-DAG: [[ANON_INNER]] EXTERNAL TYPE "(anonymous namespace)::inner"
180; CHECK-DAG: [[OUTER]] EXTERNAL TYPE "outer"
181; CHECK-DAG: [[OUTER_ANON]] EXTERNAL TYPE "outer::(anonymous namespace)"
182; CHECK-DAG: [[ANON_I]] STATIC VARIABLE "(anonymous namespace)::i"
183; CHECK-DAG: [[ANON_INNER_B]] STATIC VARIABLE "(anonymous namespace)::inner::b"
184; CHECK-DAG: [[OUTER_ANON_C]] STATIC VARIABLE "outer::(anonymous namespace)::c"
185
186; GCC Doesn't put local statics in pubnames, but it seems not unreasonable and
187; comes out naturally from LLVM's implementation, so I'm OK with it for now. If
188; it's demonstrated that this is a major size concern or degrades debug info
189; consumer behavior, feel free to change it.
190
191; CHECK-DAG: [[F3_Z]] STATIC VARIABLE "f3::z"
Eric Christopher2c8b7902013-10-17 02:06:06 +0000192
Eric Christopherdd1a0122013-09-13 00:35:05 +0000193
David Blaikieecd21ff2013-09-24 19:50:00 +0000194; CHECK-LABEL: debug_gnu_pubtypes contents:
David Blaikie2ede02f2013-11-01 17:53:30 +0000195; CHECK: Offset Linkage Kind Name
Eric Christopherd2b497b2013-10-16 01:37:49 +0000196; CHECK-DAG: [[C]] EXTERNAL TYPE "C"
Eric Christopher2c8b7902013-10-17 02:06:06 +0000197; CHECK-DAG: [[D]] EXTERNAL TYPE "ns::D"
Eric Christopherd2b497b2013-10-16 01:37:49 +0000198; CHECK-DAG: [[INT]] STATIC TYPE "int"
David Blaikieecd21ff2013-09-24 19:50:00 +0000199
Eric Christopherdd1a0122013-09-13 00:35:05 +0000200%struct.C = type { i8 }
Eric Christopher2c8b7902013-10-17 02:06:06 +0000201%"struct.ns::D" = type { i32 }
Eric Christopherdd1a0122013-09-13 00:35:05 +0000202
203@_ZN1C22static_member_variableE = global i32 0, align 4
204@global_variable = global %struct.C zeroinitializer, align 1
205@_ZN2ns25global_namespace_variableE = global i32 1, align 4
Eric Christopher2c8b7902013-10-17 02:06:06 +0000206@_ZN2ns1dE = global %"struct.ns::D" zeroinitializer, align 4
David Blaikie553eb4a2014-06-06 22:16:56 +0000207@_ZZ2f3vE1z = internal global i32 0, align 4
208@_ZN12_GLOBAL__N_11iE = internal global i32 0, align 4
209@_ZN12_GLOBAL__N_15inner1bE = internal global i32 0, align 4
210@_ZN5outer12_GLOBAL__N_11cE = internal global i32 0, align 4
Eric Christopherdd1a0122013-09-13 00:35:05 +0000211
Eric Christopherfa986e72013-09-24 00:17:54 +0000212; Function Attrs: nounwind uwtable
213define void @_ZN1C15member_functionEv(%struct.C* %this) #0 align 2 {
Eric Christopherdd1a0122013-09-13 00:35:05 +0000214entry:
215 %this.addr = alloca %struct.C*, align 8
216 store %struct.C* %this, %struct.C** %this.addr, align 8
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000217 call void @llvm.dbg.declare(metadata !{%struct.C** %this.addr}, metadata !50, metadata !{metadata !"0x102"}), !dbg !52
Eric Christopherdd1a0122013-09-13 00:35:05 +0000218 %this1 = load %struct.C** %this.addr
David Blaikie553eb4a2014-06-06 22:16:56 +0000219 store i32 0, i32* @_ZN1C22static_member_variableE, align 4, !dbg !53
220 ret void, !dbg !54
Eric Christopherdd1a0122013-09-13 00:35:05 +0000221}
222
Eric Christopherfa986e72013-09-24 00:17:54 +0000223; Function Attrs: nounwind readnone
Adrian Prantl87b7eb92014-10-01 18:55:02 +0000224declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
Eric Christopherdd1a0122013-09-13 00:35:05 +0000225
Eric Christopherfa986e72013-09-24 00:17:54 +0000226; Function Attrs: nounwind uwtable
227define i32 @_ZN1C22static_member_functionEv() #0 align 2 {
Eric Christopherdd1a0122013-09-13 00:35:05 +0000228entry:
David Blaikie553eb4a2014-06-06 22:16:56 +0000229 %0 = load i32* @_ZN1C22static_member_variableE, align 4, !dbg !55
230 ret i32 %0, !dbg !55
Eric Christopherdd1a0122013-09-13 00:35:05 +0000231}
232
Eric Christopherfa986e72013-09-24 00:17:54 +0000233; Function Attrs: nounwind uwtable
234define i32 @_Z15global_functionv() #0 {
Eric Christopherdd1a0122013-09-13 00:35:05 +0000235entry:
David Blaikie553eb4a2014-06-06 22:16:56 +0000236 ret i32 -1, !dbg !56
Eric Christopherdd1a0122013-09-13 00:35:05 +0000237}
238
Eric Christopherfa986e72013-09-24 00:17:54 +0000239; Function Attrs: nounwind uwtable
240define void @_ZN2ns25global_namespace_functionEv() #0 {
Eric Christopherdd1a0122013-09-13 00:35:05 +0000241entry:
David Blaikie553eb4a2014-06-06 22:16:56 +0000242 call void @_ZN1C15member_functionEv(%struct.C* @global_variable), !dbg !57
243 ret void, !dbg !58
244}
245
246; Function Attrs: nounwind uwtable
247define i32* @_Z2f3v() #0 {
248entry:
249 ret i32* @_ZZ2f3vE1z, !dbg !59
250}
251
252; Function Attrs: nounwind uwtable
253define i32 @_Z2f7v() #0 {
254entry:
255 %0 = load i32* @_ZN12_GLOBAL__N_11iE, align 4, !dbg !60
256 %call = call i32* @_Z2f3v(), !dbg !60
257 %1 = load i32* %call, align 4, !dbg !60
258 %add = add nsw i32 %0, %1, !dbg !60
259 %2 = load i32* @_ZN12_GLOBAL__N_15inner1bE, align 4, !dbg !60
260 %add1 = add nsw i32 %add, %2, !dbg !60
261 %3 = load i32* @_ZN5outer12_GLOBAL__N_11cE, align 4, !dbg !60
262 %add2 = add nsw i32 %add1, %3, !dbg !60
263 ret i32 %add2, !dbg !60
Eric Christopherdd1a0122013-09-13 00:35:05 +0000264}
265
Eric Christopherfa986e72013-09-24 00:17:54 +0000266attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
Eric Christopherdd1a0122013-09-13 00:35:05 +0000267attributes #1 = { nounwind readnone }
268
269!llvm.dbg.cu = !{!0}
David Blaikie553eb4a2014-06-06 22:16:56 +0000270!llvm.module.flags = !{!47, !48}
271!llvm.ident = !{!49}
Eric Christopherdd1a0122013-09-13 00:35:05 +0000272
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000273!0 = metadata !{metadata !"0x11\004\00clang version 3.5.0 \000\00\000\00\001", metadata !1, metadata !2, metadata !3, metadata !19, metadata !32, metadata !45} ; [ DW_TAG_compile_unit ] [/tmp/dbginfo/pubnames.cpp] [DW_LANG_C_plus_plus]
David Blaikie553eb4a2014-06-06 22:16:56 +0000274!1 = metadata !{metadata !"pubnames.cpp", metadata !"/tmp/dbginfo"}
David Blaikie5e390e42014-02-04 01:23:52 +0000275!2 = metadata !{}
David Blaikie553eb4a2014-06-06 22:16:56 +0000276!3 = metadata !{metadata !4, metadata !15}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000277!4 = metadata !{metadata !"0x13\00C\001\008\008\000\000\000", metadata !1, null, null, metadata !5, null, null, metadata !"_ZTS1C"} ; [ DW_TAG_structure_type ] [C] [line 1, size 8, align 8, offset 0] [def] [from ]
David Blaikie553eb4a2014-06-06 22:16:56 +0000278!5 = metadata !{metadata !6, metadata !8, metadata !12}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000279!6 = metadata !{metadata !"0xd\00static_member_variable\004\000\000\000\004096", metadata !1, metadata !"_ZTS1C", metadata !7, null} ; [ DW_TAG_member ] [static_member_variable] [line 4, size 0, align 0, offset 0] [static] [from int]
280!7 = metadata !{metadata !"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]
281!8 = metadata !{metadata !"0x2e\00member_function\00member_function\00_ZN1C15member_functionEv\002\000\000\000\006\00256\000\002", metadata !1, metadata !"_ZTS1C", metadata !9, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 2] [member_function]
282!9 = metadata !{metadata !"0x15\00\000\000\000\000\000\000", i32 0, null, null, metadata !10, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
Eric Christopherfa986e72013-09-24 00:17:54 +0000283!10 = metadata !{null, metadata !11}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000284!11 = metadata !{metadata !"0xf\00\000\0064\0064\000\001088", null, null, metadata !"_ZTS1C"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1C]
285!12 = metadata !{metadata !"0x2e\00static_member_function\00static_member_function\00_ZN1C22static_member_functionEv\003\000\000\000\006\00256\000\003", metadata !1, metadata !"_ZTS1C", metadata !13, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 3] [static_member_function]
286!13 = metadata !{metadata !"0x15\00\000\000\000\000\000\000", i32 0, null, null, metadata !14, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
David Blaikie553eb4a2014-06-06 22:16:56 +0000287!14 = metadata !{metadata !7}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000288!15 = metadata !{metadata !"0x13\00D\0028\0032\0032\000\000\000", metadata !1, metadata !16, null, metadata !17, null, null, metadata !"_ZTSN2ns1DE"} ; [ DW_TAG_structure_type ] [D] [line 28, size 32, align 32, offset 0] [def] [from ]
289!16 = metadata !{metadata !"0x39\00ns\0023", metadata !1, null} ; [ DW_TAG_namespace ] [ns] [line 23]
David Blaikie553eb4a2014-06-06 22:16:56 +0000290!17 = metadata !{metadata !18}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000291!18 = metadata !{metadata !"0xd\00A\0029\0032\0032\000\000", metadata !1, metadata !"_ZTSN2ns1DE", metadata !7} ; [ DW_TAG_member ] [A] [line 29, size 32, align 32, offset 0] [from int]
David Blaikie553eb4a2014-06-06 22:16:56 +0000292!19 = metadata !{metadata !20, metadata !21, metadata !22, metadata !24, metadata !27, metadata !31}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000293!20 = metadata !{metadata !"0x2e\00member_function\00member_function\00_ZN1C15member_functionEv\009\000\001\000\006\00256\000\009", metadata !1, metadata !"_ZTS1C", metadata !9, null, void (%struct.C*)* @_ZN1C15member_functionEv, null, metadata !8, metadata !2} ; [ DW_TAG_subprogram ] [line 9] [def] [member_function]
294!21 = metadata !{metadata !"0x2e\00static_member_function\00static_member_function\00_ZN1C22static_member_functionEv\0013\000\001\000\006\00256\000\0013", metadata !1, metadata !"_ZTS1C", metadata !13, null, i32 ()* @_ZN1C22static_member_functionEv, null, metadata !12, metadata !2} ; [ DW_TAG_subprogram ] [line 13] [def] [static_member_function]
295!22 = metadata !{metadata !"0x2e\00global_function\00global_function\00_Z15global_functionv\0019\000\001\000\006\00256\000\0019", metadata !1, metadata !23, metadata !13, null, i32 ()* @_Z15global_functionv, null, null, metadata !2} ; [ DW_TAG_subprogram ] [line 19] [def] [global_function]
296!23 = metadata !{metadata !"0x29", metadata !1} ; [ DW_TAG_file_type ] [/tmp/dbginfo/pubnames.cpp]
297!24 = metadata !{metadata !"0x2e\00global_namespace_function\00global_namespace_function\00_ZN2ns25global_namespace_functionEv\0024\000\001\000\006\00256\000\0024", metadata !1, metadata !16, metadata !25, null, void ()* @_ZN2ns25global_namespace_functionEv, null, null, metadata !2} ; [ DW_TAG_subprogram ] [line 24] [def] [global_namespace_function]
298!25 = metadata !{metadata !"0x15\00\000\000\000\000\000\000", i32 0, null, null, metadata !26, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
David Blaikie553eb4a2014-06-06 22:16:56 +0000299!26 = metadata !{null}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000300!27 = metadata !{metadata !"0x2e\00f3\00f3\00_Z2f3v\0037\000\001\000\006\00256\000\0037", metadata !1, metadata !23, metadata !28, null, i32* ()* @_Z2f3v, null, null, metadata !2} ; [ DW_TAG_subprogram ] [line 37] [def] [f3]
301!28 = metadata !{metadata !"0x15\00\000\000\000\000\000\000", i32 0, null, null, metadata !29, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
David Blaikie553eb4a2014-06-06 22:16:56 +0000302!29 = metadata !{metadata !30}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000303!30 = metadata !{metadata !"0xf\00\000\0064\0064\000\000", null, null, metadata !7} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from int]
304!31 = metadata !{metadata !"0x2e\00f7\00f7\00_Z2f7v\0054\000\001\000\006\00256\000\0054", metadata !1, metadata !23, metadata !13, null, i32 ()* @_Z2f7v, null, null, metadata !2} ; [ DW_TAG_subprogram ] [line 54] [def] [f7]
David Blaikie553eb4a2014-06-06 22:16:56 +0000305!32 = metadata !{metadata !33, metadata !34, metadata !35, metadata !36, metadata !37, metadata !38, metadata !41, metadata !44}
David Blaikie49cfc8c2014-10-23 19:12:43 +0000306!33 = metadata !{metadata !"0x34\00static_member_variable\00static_member_variable\00_ZN1C22static_member_variableE\007\000\001", null, metadata !23, metadata !7, i32* @_ZN1C22static_member_variableE, metadata !6} ; [ DW_TAG_variable ] [static_member_variable] [line 7] [def]
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000307!34 = metadata !{metadata !"0x34\00global_variable\00global_variable\00\0017\000\001", null, metadata !23, metadata !"_ZTS1C", %struct.C* @global_variable, null} ; [ DW_TAG_variable ] [global_variable] [line 17] [def]
308!35 = metadata !{metadata !"0x34\00global_namespace_variable\00global_namespace_variable\00_ZN2ns25global_namespace_variableE\0027\000\001", metadata !16, metadata !23, metadata !7, i32* @_ZN2ns25global_namespace_variableE, null} ; [ DW_TAG_variable ] [global_namespace_variable] [line 27] [def]
309!36 = metadata !{metadata !"0x34\00d\00d\00_ZN2ns1dE\0030\000\001", metadata !16, metadata !23, metadata !"_ZTSN2ns1DE", %"struct.ns::D"* @_ZN2ns1dE, null} ; [ DW_TAG_variable ] [d] [line 30] [def]
310!37 = metadata !{metadata !"0x34\00z\00z\00\0038\001\001", metadata !27, metadata !23, metadata !7, i32* @_ZZ2f3vE1z, null} ; [ DW_TAG_variable ] [z] [line 38] [local] [def]
311!38 = metadata !{metadata !"0x34\00c\00c\00_ZN5outer12_GLOBAL__N_11cE\0050\001\001", metadata !39, metadata !23, metadata !7, i32* @_ZN5outer12_GLOBAL__N_11cE, null} ; [ DW_TAG_variable ] [c] [line 50] [local] [def]
312!39 = metadata !{metadata !"0x39\00\0049", metadata !1, metadata !40} ; [ DW_TAG_namespace ] [line 49]
313!40 = metadata !{metadata !"0x39\00outer\0048", metadata !1, null} ; [ DW_TAG_namespace ] [outer] [line 48]
314!41 = metadata !{metadata !"0x34\00b\00b\00_ZN12_GLOBAL__N_15inner1bE\0044\001\001", metadata !42, metadata !23, metadata !7, i32* @_ZN12_GLOBAL__N_15inner1bE, null} ; [ DW_TAG_variable ] [b] [line 44] [local] [def]
315!42 = metadata !{metadata !"0x39\00inner\0043", metadata !1, metadata !43} ; [ DW_TAG_namespace ] [inner] [line 43]
316!43 = metadata !{metadata !"0x39\00\0033", metadata !1, null} ; [ DW_TAG_namespace ] [line 33]
317!44 = metadata !{metadata !"0x34\00i\00i\00_ZN12_GLOBAL__N_11iE\0034\001\001", metadata !43, metadata !23, metadata !7, i32* @_ZN12_GLOBAL__N_11iE, null} ; [ DW_TAG_variable ] [i] [line 34] [local] [def]
David Blaikie553eb4a2014-06-06 22:16:56 +0000318!45 = metadata !{metadata !46}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000319!46 = metadata !{metadata !"0x3a\0040\00", metadata !40, metadata !39} ; [ DW_TAG_imported_module ]
David Blaikie553eb4a2014-06-06 22:16:56 +0000320!47 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000321!48 = metadata !{i32 2, metadata !"Debug Info Version", i32 2}
David Blaikie553eb4a2014-06-06 22:16:56 +0000322!49 = metadata !{metadata !"clang version 3.5.0 "}
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +0000323!50 = metadata !{metadata !"0x101\00this\0016777216\001088", metadata !20, null, metadata !51} ; [ DW_TAG_arg_variable ] [this] [line 0]
324!51 = metadata !{metadata !"0xf\00\000\0064\0064\000\000", null, null, metadata !"_ZTS1C"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from _ZTS1C]
David Blaikie553eb4a2014-06-06 22:16:56 +0000325!52 = metadata !{i32 0, i32 0, metadata !20, null}
326!53 = metadata !{i32 10, i32 0, metadata !20, null}
327!54 = metadata !{i32 11, i32 0, metadata !20, null}
328!55 = metadata !{i32 14, i32 0, metadata !21, null}
329!56 = metadata !{i32 20, i32 0, metadata !22, null}
330!57 = metadata !{i32 25, i32 0, metadata !24, null}
331!58 = metadata !{i32 26, i32 0, metadata !24, null}
332!59 = metadata !{i32 39, i32 0, metadata !27, null}
333!60 = metadata !{i32 55, i32 0, metadata !31, null}