mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
b056aa798d
Move the specialized metadata nodes for the new debug info hierarchy into place, finishing off PR22464. I've done bootstraps (and all that) and I'm confident this commit is NFC as far as DWARF output is concerned. Let me know if I'm wrong :). The code changes are fairly mechanical: - Bumped the "Debug Info Version". - `DIBuilder` now creates the appropriate subclass of `MDNode`. - Subclasses of DIDescriptor now expect to hold their "MD" counterparts (e.g., `DIBasicType` expects `MDBasicType`). - Deleted a ton of dead code in `AsmWriter.cpp` and `DebugInfo.cpp` for printing comments. - Big update to LangRef to describe the nodes in the new hierarchy. Feel free to make it better. Testcase changes are enormous. There's an accompanying clang commit on its way. If you have out-of-tree debug info testcases, I just broke your build. - `upgrade-specialized-nodes.sh` is attached to PR22564. I used it to update all the IR testcases. - Unfortunately I failed to find way to script the updates to CHECK lines, so I updated all of these by hand. This was fairly painful, since the old CHECKs are difficult to reason about. That's one of the benefits of the new hierarchy. This work isn't quite finished, BTW. The `DIDescriptor` subclasses are almost empty wrappers, but not quite: they still have loose casting checks (see the `RETURN_FROM_RAW()` macro). Once they're completely gutted, I'll rename the "MD" classes to "DI" and kill the wrappers. I also expect to make a few schema changes now that it's easier to reason about everything. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231082 91177308-0d34-0410-b5e6-96231b3b80d8
367 lines
16 KiB
LLVM
367 lines
16 KiB
LLVM
; REQUIRES: object-emission
|
|
|
|
; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
|
|
; RUN: llvm-dwarfdump %t | FileCheck %s
|
|
; CHECK: debug_info contents
|
|
; CHECK: [[NS1:0x[0-9a-f]*]]:{{ *}}DW_TAG_namespace
|
|
; CHECK-NEXT: DW_AT_name{{.*}} = "A"
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F1:".*debug-info-namespace.cpp"]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(5)
|
|
; CHECK-NOT: NULL
|
|
; CHECK: [[NS2:0x[0-9a-f]*]]:{{ *}}DW_TAG_namespace
|
|
; CHECK-NEXT: DW_AT_name{{.*}} = "B"
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2:".*foo.cpp"]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(1)
|
|
; CHECK-NOT: NULL
|
|
; CHECK: [[I:0x[0-9a-f]*]]:{{ *}}DW_TAG_variable
|
|
; CHECK-NEXT: DW_AT_name{{.*}}= "i"
|
|
; CHECK: [[VAR_FWD:0x[0-9a-f]*]]:{{ *}}DW_TAG_variable
|
|
; CHECK-NEXT: DW_AT_name{{.*}}= "var_fwd"
|
|
; CHECK-NOT: NULL
|
|
; CHECK: [[FOO:0x[0-9a-f]*]]:{{ *}}DW_TAG_structure_type
|
|
; CHECK-NEXT: DW_AT_name{{.*}}= "foo"
|
|
; CHECK-NEXT: DW_AT_declaration
|
|
; CHECK-NOT: NULL
|
|
; CHECK: [[BAR:0x[0-9a-f]*]]:{{ *}}DW_TAG_structure_type
|
|
; CHECK-NEXT: DW_AT_name{{.*}}= "bar"
|
|
; CHECK: [[FUNC1:.*]]: DW_TAG_subprogram
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_MIPS_linkage_name
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_name{{.*}}= "f1"
|
|
; CHECK: [[BAZ:0x[0-9a-f]*]]:{{.*}}DW_TAG_typedef
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_name{{.*}}= "baz"
|
|
; CHECK: [[VAR_DECL:0x[0-9a-f]*]]:{{.*}}DW_TAG_variable
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_name{{.*}}= "var_decl"
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_declaration
|
|
; CHECK: [[FUNC_DECL:0x[0-9a-f]*]]:{{.*}}DW_TAG_subprogram
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_name{{.*}}= "func_decl"
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_declaration
|
|
; CHECK: [[FUNC_FWD:0x[0-9a-f]*]]:{{.*}}DW_TAG_subprogram
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_name{{.*}}= "func_fwd"
|
|
; CHECK-NOT: DW_AT_declaration
|
|
; CHECK: DW_TAG_subprogram
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_MIPS_linkage_name
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_name{{.*}}= "f1"
|
|
; CHECK: NULL
|
|
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_module
|
|
; This is a bug, it should be in F2 but it inherits the file from its
|
|
; enclosing scope
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F1]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(15)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[NS2]]})
|
|
; CHECK: NULL
|
|
; CHECK-NOT: NULL
|
|
|
|
; CHECK: DW_TAG_imported_module
|
|
; Same bug as above, this should be F2, not F1
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F1]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(18)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[NS1]]})
|
|
; CHECK-NOT: NULL
|
|
|
|
; CHECK: DW_TAG_subprogram
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_MIPS_linkage_name
|
|
; CHECK-NOT: DW_TAG
|
|
; CHECK: DW_AT_name{{.*}}= "func"
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_module
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(26)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[NS1]]})
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(27)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[FOO]]})
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(28)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[BAR]]})
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(29)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[FUNC1]]})
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(30)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[I]]})
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(31)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[BAZ]]})
|
|
; CHECK-NOT: NULL
|
|
; CHECK: [[X:0x[0-9a-f]*]]:{{ *}}DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(32)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[NS1]]})
|
|
; CHECK-NEXT: DW_AT_name{{.*}}"X"
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(33)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[X]]})
|
|
; CHECK-NEXT: DW_AT_name{{.*}}"Y"
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(34)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[VAR_DECL]]})
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(35)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[FUNC_DECL]]})
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(36)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[VAR_FWD]]})
|
|
; CHECK: DW_TAG_imported_declaration
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(37)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=> {[[FUNC_FWD]]})
|
|
|
|
; CHECK: DW_TAG_lexical_block
|
|
; CHECK-NOT: NULL
|
|
; CHECK: DW_TAG_imported_module
|
|
; CHECK-NEXT: DW_AT_decl_file{{.*}}([[F2]])
|
|
; CHECK-NEXT: DW_AT_decl_line{{.*}}(23)
|
|
; CHECK-NEXT: DW_AT_import{{.*}}=>
|
|
; CHECK: NULL
|
|
; CHECK: NULL
|
|
; CHECK: NULL
|
|
|
|
; IR generated from clang/test/CodeGenCXX/debug-info-namespace.cpp, file paths
|
|
; changed to protect the guilty. The C++ source code is:
|
|
; // RUN...
|
|
; // RUN...
|
|
; // RUN...
|
|
;
|
|
; namespace A {
|
|
; #line 1 "foo.cpp"
|
|
; namespace B {
|
|
; extern int i;
|
|
; int f1() { return 0; }
|
|
; void f1(int) { }
|
|
; struct foo;
|
|
; struct bar { };
|
|
; typedef bar baz;
|
|
; extern int var_decl;
|
|
; void func_decl(void);
|
|
; extern int var_fwd;
|
|
; void func_fwd(void);
|
|
; }
|
|
; }
|
|
; namespace A {
|
|
; using namespace B;
|
|
; }
|
|
;
|
|
; using namespace A;
|
|
; namespace E = A;
|
|
; int B::i = f1();
|
|
; int func(bool b) {
|
|
; if (b) {
|
|
; using namespace A::B;
|
|
; return i;
|
|
; }
|
|
; using namespace A;
|
|
; using B::foo;
|
|
; using B::bar;
|
|
; using B::f1;
|
|
; using B::i;
|
|
; using B::baz;
|
|
; namespace X = A;
|
|
; namespace Y = X;
|
|
; using B::var_decl;
|
|
; using B::func_decl;
|
|
; using B::var_fwd;
|
|
; using B::func_fwd;
|
|
; return i + X::B::i + Y::B::i;
|
|
; }
|
|
;
|
|
; namespace A {
|
|
; using B::i;
|
|
; namespace B {
|
|
; int var_fwd = i;
|
|
; }
|
|
; }
|
|
; void B::func_fwd() {}
|
|
|
|
@_ZN1A1B1iE = global i32 0, align 4
|
|
@_ZN1A1B7var_fwdE = global i32 0, align 4
|
|
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__sub_I_debug_info_namespace.cpp, i8* null }]
|
|
|
|
; Function Attrs: nounwind ssp uwtable
|
|
define i32 @_ZN1A1B2f1Ev() #0 {
|
|
entry:
|
|
ret i32 0, !dbg !60
|
|
}
|
|
|
|
; Function Attrs: nounwind ssp uwtable
|
|
define void @_ZN1A1B2f1Ei(i32) #0 {
|
|
entry:
|
|
%.addr = alloca i32, align 4
|
|
store i32 %0, i32* %.addr, align 4
|
|
call void @llvm.dbg.declare(metadata i32* %.addr, metadata !61, metadata !62), !dbg !63
|
|
ret void, !dbg !64
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
|
|
|
|
define internal void @__cxx_global_var_init() section "__TEXT,__StaticInit,regular,pure_instructions" {
|
|
entry:
|
|
%call = call i32 @_ZN1A1B2f1Ev(), !dbg !65
|
|
store i32 %call, i32* @_ZN1A1B1iE, align 4, !dbg !65
|
|
ret void, !dbg !65
|
|
}
|
|
|
|
; Function Attrs: nounwind ssp uwtable
|
|
define i32 @_Z4funcb(i1 zeroext %b) #0 {
|
|
entry:
|
|
%retval = alloca i32, align 4
|
|
%b.addr = alloca i8, align 1
|
|
%frombool = zext i1 %b to i8
|
|
store i8 %frombool, i8* %b.addr, align 1
|
|
call void @llvm.dbg.declare(metadata i8* %b.addr, metadata !66, metadata !62), !dbg !67
|
|
%0 = load i8, i8* %b.addr, align 1, !dbg !68
|
|
%tobool = trunc i8 %0 to i1, !dbg !68
|
|
br i1 %tobool, label %if.then, label %if.end, !dbg !68
|
|
|
|
if.then: ; preds = %entry
|
|
%1 = load i32, i32* @_ZN1A1B1iE, align 4, !dbg !69
|
|
store i32 %1, i32* %retval, !dbg !69
|
|
br label %return, !dbg !69
|
|
|
|
if.end: ; preds = %entry
|
|
%2 = load i32, i32* @_ZN1A1B1iE, align 4, !dbg !70
|
|
%3 = load i32, i32* @_ZN1A1B1iE, align 4, !dbg !70
|
|
%add = add nsw i32 %2, %3, !dbg !70
|
|
%4 = load i32, i32* @_ZN1A1B1iE, align 4, !dbg !70
|
|
%add1 = add nsw i32 %add, %4, !dbg !70
|
|
store i32 %add1, i32* %retval, !dbg !70
|
|
br label %return, !dbg !70
|
|
|
|
return: ; preds = %if.end, %if.then
|
|
%5 = load i32, i32* %retval, !dbg !71
|
|
ret i32 %5, !dbg !71
|
|
}
|
|
|
|
define internal void @__cxx_global_var_init1() section "__TEXT,__StaticInit,regular,pure_instructions" {
|
|
entry:
|
|
%0 = load i32, i32* @_ZN1A1B1iE, align 4, !dbg !72
|
|
store i32 %0, i32* @_ZN1A1B7var_fwdE, align 4, !dbg !72
|
|
ret void, !dbg !72
|
|
}
|
|
|
|
; Function Attrs: nounwind ssp uwtable
|
|
define void @_ZN1A1B8func_fwdEv() #0 {
|
|
entry:
|
|
ret void, !dbg !73
|
|
}
|
|
|
|
define internal void @_GLOBAL__sub_I_debug_info_namespace.cpp() section "__TEXT,__StaticInit,regular,pure_instructions" {
|
|
entry:
|
|
call void @__cxx_global_var_init(), !dbg !74
|
|
call void @__cxx_global_var_init1(), !dbg !74
|
|
ret void, !dbg !74
|
|
}
|
|
|
|
attributes #0 = { nounwind ssp 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" }
|
|
attributes #1 = { nounwind readnone }
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!57, !58}
|
|
!llvm.ident = !{!59}
|
|
|
|
!0 = !MDCompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.6.0 ", isOptimized: false, emissionKind: 1, file: !1, enums: !2, retainedTypes: !3, subprograms: !9, globals: !30, imports: !33)
|
|
!1 = !MDFile(filename: "debug-info-namespace.cpp", directory: "/tmp")
|
|
!2 = !{}
|
|
!3 = !{!4, !8}
|
|
!4 = !MDCompositeType(tag: DW_TAG_structure_type, name: "foo", line: 5, flags: DIFlagFwdDecl, file: !5, scope: !6, identifier: "_ZTSN1A1B3fooE")
|
|
!5 = !MDFile(filename: "foo.cpp", directory: "/tmp")
|
|
!6 = !MDNamespace(name: "B", line: 1, file: !5, scope: !7)
|
|
!7 = !MDNamespace(name: "A", line: 5, file: !1, scope: null)
|
|
!8 = !MDCompositeType(tag: DW_TAG_structure_type, name: "bar", line: 6, size: 8, align: 8, file: !5, scope: !6, elements: !2, identifier: "_ZTSN1A1B3barE")
|
|
!9 = !{!10, !14, !17, !21, !25, !26, !27}
|
|
!10 = !MDSubprogram(name: "f1", linkageName: "_ZN1A1B2f1Ev", line: 3, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !5, scope: !6, type: !11, function: i32 ()* @_ZN1A1B2f1Ev, variables: !2)
|
|
!11 = !MDSubroutineType(types: !12)
|
|
!12 = !{!13}
|
|
!13 = !MDBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
|
!14 = !MDSubprogram(name: "f1", linkageName: "_ZN1A1B2f1Ei", line: 4, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 4, file: !5, scope: !6, type: !15, function: void (i32)* @_ZN1A1B2f1Ei, variables: !2)
|
|
!15 = !MDSubroutineType(types: !16)
|
|
!16 = !{null, !13}
|
|
!17 = !MDSubprogram(name: "__cxx_global_var_init", line: 20, isLocal: true, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 20, file: !5, scope: !18, type: !19, function: void ()* @__cxx_global_var_init, variables: !2)
|
|
!18 = !MDFile(filename: "foo.cpp", directory: "/tmp")
|
|
!19 = !MDSubroutineType(types: !20)
|
|
!20 = !{null}
|
|
!21 = !MDSubprogram(name: "func", linkageName: "_Z4funcb", line: 21, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 21, file: !5, scope: !18, type: !22, function: i32 (i1)* @_Z4funcb, variables: !2)
|
|
!22 = !MDSubroutineType(types: !23)
|
|
!23 = !{!13, !24}
|
|
!24 = !MDBasicType(tag: DW_TAG_base_type, name: "bool", size: 8, align: 8, encoding: DW_ATE_boolean)
|
|
!25 = !MDSubprogram(name: "__cxx_global_var_init1", line: 44, isLocal: true, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 44, file: !5, scope: !18, type: !19, function: void ()* @__cxx_global_var_init1, variables: !2)
|
|
!26 = !MDSubprogram(name: "func_fwd", linkageName: "_ZN1A1B8func_fwdEv", line: 47, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 47, file: !5, scope: !6, type: !19, function: void ()* @_ZN1A1B8func_fwdEv, variables: !2)
|
|
!27 = !MDSubprogram(name: "", linkageName: "_GLOBAL__sub_I_debug_info_namespace.cpp", isLocal: true, isDefinition: true, flags: DIFlagArtificial, isOptimized: false, file: !1, scope: !28, type: !29, function: void ()* @_GLOBAL__sub_I_debug_info_namespace.cpp, variables: !2)
|
|
!28 = !MDFile(filename: "debug-info-namespace.cpp", directory: "/tmp")
|
|
!29 = !MDSubroutineType(types: !2)
|
|
!30 = !{!31, !32}
|
|
!31 = !MDGlobalVariable(name: "i", linkageName: "_ZN1A1B1iE", line: 20, isLocal: false, isDefinition: true, scope: !6, file: !18, type: !13, variable: i32* @_ZN1A1B1iE)
|
|
!32 = !MDGlobalVariable(name: "var_fwd", linkageName: "_ZN1A1B7var_fwdE", line: 44, isLocal: false, isDefinition: true, scope: !6, file: !18, type: !13, variable: i32* @_ZN1A1B7var_fwdE)
|
|
!33 = !{!34, !35, !36, !37, !40, !41, !42, !43, !44, !45, !47, !48, !49, !51, !54, !55, !56}
|
|
!34 = !MDImportedEntity(tag: DW_TAG_imported_module, line: 15, scope: !7, entity: !6)
|
|
!35 = !MDImportedEntity(tag: DW_TAG_imported_module, line: 18, scope: !0, entity: !7)
|
|
!36 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 19, name: "E", scope: !0, entity: !7)
|
|
!37 = !MDImportedEntity(tag: DW_TAG_imported_module, line: 23, scope: !38, entity: !6)
|
|
!38 = distinct !MDLexicalBlock(line: 22, column: 10, file: !5, scope: !39)
|
|
!39 = distinct !MDLexicalBlock(line: 22, column: 7, file: !5, scope: !21)
|
|
!40 = !MDImportedEntity(tag: DW_TAG_imported_module, line: 26, scope: !21, entity: !7)
|
|
!41 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 27, scope: !21, entity: !"_ZTSN1A1B3fooE")
|
|
!42 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 28, scope: !21, entity: !"_ZTSN1A1B3barE")
|
|
!43 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 29, scope: !21, entity: !14)
|
|
!44 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 30, scope: !21, entity: !31)
|
|
!45 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 31, scope: !21, entity: !46)
|
|
!46 = !MDDerivedType(tag: DW_TAG_typedef, name: "baz", line: 7, file: !5, scope: !6, baseType: !"_ZTSN1A1B3barE")
|
|
!47 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 32, name: "X", scope: !21, entity: !7)
|
|
!48 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 33, name: "Y", scope: !21, entity: !47)
|
|
!49 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 34, scope: !21, entity: !50)
|
|
!50 = !MDGlobalVariable(name: "var_decl", linkageName: "_ZN1A1B8var_declE", line: 8, isLocal: false, isDefinition: false, scope: !6, file: !18, type: !13)
|
|
!51 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 35, scope: !21, entity: !52)
|
|
!52 = !MDSubprogram(name: "func_decl", linkageName: "_ZN1A1B9func_declEv", line: 9, isLocal: false, isDefinition: false, flags: DIFlagPrototyped, isOptimized: false, file: !5, scope: !6, type: !19, variables: !53)
|
|
!53 = !{} ; previously: invalid DW_TAG_base_type
|
|
!54 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 36, scope: !21, entity: !32)
|
|
!55 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 37, scope: !21, entity: !26)
|
|
!56 = !MDImportedEntity(tag: DW_TAG_imported_declaration, line: 42, scope: !7, entity: !31)
|
|
!57 = !{i32 2, !"Dwarf Version", i32 2}
|
|
!58 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!59 = !{!"clang version 3.6.0 "}
|
|
!60 = !MDLocation(line: 3, column: 12, scope: !10)
|
|
!61 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "", line: 4, arg: 1, scope: !14, file: !18, type: !13)
|
|
!62 = !MDExpression()
|
|
!63 = !MDLocation(line: 4, column: 12, scope: !14)
|
|
!64 = !MDLocation(line: 4, column: 16, scope: !14)
|
|
!65 = !MDLocation(line: 20, column: 12, scope: !17)
|
|
!66 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "b", line: 21, arg: 1, scope: !21, file: !18, type: !24)
|
|
!67 = !MDLocation(line: 21, column: 15, scope: !21)
|
|
!68 = !MDLocation(line: 22, column: 7, scope: !21)
|
|
!69 = !MDLocation(line: 24, column: 5, scope: !38)
|
|
!70 = !MDLocation(line: 38, column: 3, scope: !21)
|
|
!71 = !MDLocation(line: 39, column: 1, scope: !21)
|
|
!72 = !MDLocation(line: 44, column: 15, scope: !25)
|
|
!73 = !MDLocation(line: 47, column: 21, scope: !26)
|
|
!74 = !MDLocation(line: 0, scope: !75)
|
|
!75 = !MDLexicalBlockFile(discriminator: 0, file: !5, scope: !27)
|