blob: e7bb0a1f080c95ffe7548e5a8ed678eb2e04e400 [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
Paul Robinson857b4432015-03-10 22:44:45 +000062; CHECK-NEXT: DW_AT_linkage_name
David Blaikieac30f9e2013-09-19 23:43:46 +000063; 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
Paul Robinson857b4432015-03-10 22:44:45 +000066; CHECK-NEXT: DW_AT_linkage_name
David Blaikieac30f9e2013-09-19 23:43:46 +000067; 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
Paul Robinson857b4432015-03-10 22:44:45 +000095; CHECK: DW_AT_linkage_name
David Blaikie2f753512014-05-23 21:11:46 +000096; 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
Paul Robinson857b4432015-03-10 22:44:45 +0000162; CHECK: DW_AT_linkage_name
David Blaikie2f753512014-05-23 21:11:46 +0000163; 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 Smithe2741802015-03-03 17:24:31 +0000217 call void @llvm.dbg.declare(metadata %struct.C** %this.addr, metadata !50, metadata !MDExpression()), !dbg !52
David Blaikiea79ac142015-02-27 21:17:42 +0000218 %this1 = load %struct.C*, %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 Blaikiea79ac142015-02-27 21:17:42 +0000229 %0 = load i32, i32* @_ZN1C22static_member_variableE, align 4, !dbg !55
David Blaikie553eb4a2014-06-06 22:16:56 +0000230 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:
David Blaikiea79ac142015-02-27 21:17:42 +0000255 %0 = load i32, i32* @_ZN12_GLOBAL__N_11iE, align 4, !dbg !60
David Blaikie553eb4a2014-06-06 22:16:56 +0000256 %call = call i32* @_Z2f3v(), !dbg !60
David Blaikiea79ac142015-02-27 21:17:42 +0000257 %1 = load i32, i32* %call, align 4, !dbg !60
David Blaikie553eb4a2014-06-06 22:16:56 +0000258 %add = add nsw i32 %0, %1, !dbg !60
David Blaikiea79ac142015-02-27 21:17:42 +0000259 %2 = load i32, i32* @_ZN12_GLOBAL__N_15inner1bE, align 4, !dbg !60
David Blaikie553eb4a2014-06-06 22:16:56 +0000260 %add1 = add nsw i32 %add, %2, !dbg !60
David Blaikiea79ac142015-02-27 21:17:42 +0000261 %3 = load i32, i32* @_ZN5outer12_GLOBAL__N_11cE, align 4, !dbg !60
David Blaikie553eb4a2014-06-06 22:16:56 +0000262 %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 Smithe2741802015-03-03 17:24:31 +0000273!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5.0 ", isOptimized: false, emissionKind: 1, file: !1, enums: !2, retainedTypes: !3, subprograms: !19, globals: !32, imports: !45)
274!1 = !MDFile(filename: "pubnames.cpp", directory: "/tmp/dbginfo")
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000275!2 = !{}
276!3 = !{!4, !15}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000277!4 = !MDCompositeType(tag: DW_TAG_structure_type, name: "C", line: 1, size: 8, align: 8, file: !1, elements: !5, identifier: "_ZTS1C")
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000278!5 = !{!6, !8, !12}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000279!6 = !MDDerivedType(tag: DW_TAG_member, name: "static_member_variable", line: 4, flags: DIFlagStaticMember, file: !1, scope: !"_ZTS1C", baseType: !7)
280!7 = !MDBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
281!8 = !MDSubprogram(name: "member_function", linkageName: "_ZN1C15member_functionEv", line: 2, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 2, file: !1, scope: !"_ZTS1C", type: !9)
282!9 = !MDSubroutineType(types: !10)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000283!10 = !{null, !11}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000284!11 = !MDDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer, baseType: !"_ZTS1C")
285!12 = !MDSubprogram(name: "static_member_function", linkageName: "_ZN1C22static_member_functionEv", line: 3, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !1, scope: !"_ZTS1C", type: !13)
286!13 = !MDSubroutineType(types: !14)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000287!14 = !{!7}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000288!15 = !MDCompositeType(tag: DW_TAG_structure_type, name: "D", line: 28, size: 32, align: 32, file: !1, scope: !16, elements: !17, identifier: "_ZTSN2ns1DE")
289!16 = !MDNamespace(name: "ns", line: 23, file: !1, scope: null)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000290!17 = !{!18}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000291!18 = !MDDerivedType(tag: DW_TAG_member, name: "A", line: 29, size: 32, align: 32, file: !1, scope: !"_ZTSN2ns1DE", baseType: !7)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000292!19 = !{!20, !21, !22, !24, !27, !31}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000293!20 = !MDSubprogram(name: "member_function", linkageName: "_ZN1C15member_functionEv", line: 9, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 9, file: !1, scope: !"_ZTS1C", type: !9, function: void (%struct.C*)* @_ZN1C15member_functionEv, declaration: !8, variables: !2)
294!21 = !MDSubprogram(name: "static_member_function", linkageName: "_ZN1C22static_member_functionEv", line: 13, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 13, file: !1, scope: !"_ZTS1C", type: !13, function: i32 ()* @_ZN1C22static_member_functionEv, declaration: !12, variables: !2)
295!22 = !MDSubprogram(name: "global_function", linkageName: "_Z15global_functionv", line: 19, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 19, file: !1, scope: !23, type: !13, function: i32 ()* @_Z15global_functionv, variables: !2)
296!23 = !MDFile(filename: "pubnames.cpp", directory: "/tmp/dbginfo")
297!24 = !MDSubprogram(name: "global_namespace_function", linkageName: "_ZN2ns25global_namespace_functionEv", line: 24, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 24, file: !1, scope: !16, type: !25, function: void ()* @_ZN2ns25global_namespace_functionEv, variables: !2)
298!25 = !MDSubroutineType(types: !26)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000299!26 = !{null}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000300!27 = !MDSubprogram(name: "f3", linkageName: "_Z2f3v", line: 37, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 37, file: !1, scope: !23, type: !28, function: i32* ()* @_Z2f3v, variables: !2)
301!28 = !MDSubroutineType(types: !29)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000302!29 = !{!30}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000303!30 = !MDDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !7)
304!31 = !MDSubprogram(name: "f7", linkageName: "_Z2f7v", line: 54, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 54, file: !1, scope: !23, type: !13, function: i32 ()* @_Z2f7v, variables: !2)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000305!32 = !{!33, !34, !35, !36, !37, !38, !41, !44}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000306!33 = !MDGlobalVariable(name: "static_member_variable", linkageName: "_ZN1C22static_member_variableE", line: 7, isLocal: false, isDefinition: true, scope: null, file: !23, type: !7, variable: i32* @_ZN1C22static_member_variableE, declaration: !6)
307!34 = !MDGlobalVariable(name: "global_variable", line: 17, isLocal: false, isDefinition: true, scope: null, file: !23, type: !"_ZTS1C", variable: %struct.C* @global_variable)
308!35 = !MDGlobalVariable(name: "global_namespace_variable", linkageName: "_ZN2ns25global_namespace_variableE", line: 27, isLocal: false, isDefinition: true, scope: !16, file: !23, type: !7, variable: i32* @_ZN2ns25global_namespace_variableE)
309!36 = !MDGlobalVariable(name: "d", linkageName: "_ZN2ns1dE", line: 30, isLocal: false, isDefinition: true, scope: !16, file: !23, type: !"_ZTSN2ns1DE", variable: %"struct.ns::D"* @_ZN2ns1dE)
310!37 = !MDGlobalVariable(name: "z", line: 38, isLocal: true, isDefinition: true, scope: !27, file: !23, type: !7, variable: i32* @_ZZ2f3vE1z)
311!38 = !MDGlobalVariable(name: "c", linkageName: "_ZN5outer12_GLOBAL__N_11cE", line: 50, isLocal: true, isDefinition: true, scope: !39, file: !23, type: !7, variable: i32* @_ZN5outer12_GLOBAL__N_11cE)
312!39 = !MDNamespace(line: 49, file: !1, scope: !40)
313!40 = !MDNamespace(name: "outer", line: 48, file: !1, scope: null)
314!41 = !MDGlobalVariable(name: "b", linkageName: "_ZN12_GLOBAL__N_15inner1bE", line: 44, isLocal: true, isDefinition: true, scope: !42, file: !23, type: !7, variable: i32* @_ZN12_GLOBAL__N_15inner1bE)
315!42 = !MDNamespace(name: "inner", line: 43, file: !1, scope: !43)
316!43 = !MDNamespace(line: 33, file: !1, scope: null)
317!44 = !MDGlobalVariable(name: "i", linkageName: "_ZN12_GLOBAL__N_11iE", line: 34, isLocal: true, isDefinition: true, scope: !43, file: !23, type: !7, variable: i32* @_ZN12_GLOBAL__N_11iE)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000318!45 = !{!46}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000319!46 = !MDImportedEntity(tag: DW_TAG_imported_module, line: 40, scope: !40, entity: !39)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000320!47 = !{i32 2, !"Dwarf Version", i32 4}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000321!48 = !{i32 2, !"Debug Info Version", i32 3}
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +0000322!49 = !{!"clang version 3.5.0 "}
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +0000323!50 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !20, type: !51)
324!51 = !MDDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !"_ZTS1C")
Duncan P. N. Exon Smith98854692015-01-14 22:27:36 +0000325!52 = !MDLocation(line: 0, scope: !20)
326!53 = !MDLocation(line: 10, scope: !20)
327!54 = !MDLocation(line: 11, scope: !20)
328!55 = !MDLocation(line: 14, scope: !21)
329!56 = !MDLocation(line: 20, scope: !22)
330!57 = !MDLocation(line: 25, scope: !24)
331!58 = !MDLocation(line: 26, scope: !24)
332!59 = !MDLocation(line: 39, scope: !27)
333!60 = !MDLocation(line: 55, scope: !31)