Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -split-dwarf-file=foo.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t
      2 ; RUN: llvm-dwarfdump -v -all %t | FileCheck %s --check-prefix=CHECK-DWO
      3 
      4 ; Based on the debuginfo-tests/sret.cpp code.
      5 
      6 ; CHECK-DWO: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1)
      7 ; CHECK-DWO: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1)
      8 
      9 ; RUN: llc -O0 -fast-isel=true -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
     10 ; RUN: llc -O0 -fast-isel=false -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
     11 ; CHECK: _ZN1B9AInstanceEv
     12 ; CHECK: DW_TAG_variable
     13 ; CHECK-NEXT:   DW_AT_location [DW_FORM_sec_offset] (0x00000000
     14 ; CHECK-NEXT:     [{{.*}}, {{.*}}): DW_OP_breg5 RDI+0
     15 ; CHECK-NEXT:     [{{.*}}, {{.*}}): DW_OP_breg6 RBP-24, DW_OP_deref)
     16 ; CHECK-NEXT:   DW_AT_name {{.*}}"a"
     17 
     18 %class.A = type { i32 (...)**, i32 }
     19 %class.B = type { i8 }
     20 
     21 @_ZTV1A = linkonce_odr unnamed_addr constant [4 x i8*] [i8* null, i8* bitcast ({ i8*, i8* }* @_ZTI1A to i8*), i8* bitcast (void (%class.A*)* @_ZN1AD2Ev to i8*), i8* bitcast (void (%class.A*)* @_ZN1AD0Ev to i8*)]
     22 @_ZTVN10__cxxabiv117__class_type_infoE = external global i8*
     23 @_ZTS1A = linkonce_odr constant [3 x i8] c"1A\00"
     24 @_ZTI1A = linkonce_odr constant { i8*, i8* } { i8* bitcast (i8** getelementptr inbounds (i8*, i8** @_ZTVN10__cxxabiv117__class_type_infoE, i64 2) to i8*), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @_ZTS1A, i32 0, i32 0) }
     25 
     26 @_ZN1AC1Ei = alias void (%class.A*, i32), void (%class.A*, i32)* @_ZN1AC2Ei
     27 @_ZN1AC1ERKS_ = alias void (%class.A*, %class.A*), void (%class.A*, %class.A*)* @_ZN1AC2ERKS_
     28 
     29 ; Function Attrs: nounwind uwtable
     30 define void @_ZN1AC2Ei(%class.A* %this, i32 %i) unnamed_addr #0 align 2 !dbg !49 {
     31 entry:
     32   %this.addr = alloca %class.A*, align 8
     33   %i.addr = alloca i32, align 4
     34   store %class.A* %this, %class.A** %this.addr, align 8
     35   call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !67, metadata !DIExpression()), !dbg !69
     36   store i32 %i, i32* %i.addr, align 4
     37   call void @llvm.dbg.declare(metadata i32* %i.addr, metadata !70, metadata !DIExpression()), !dbg !71
     38   %this1 = load %class.A*, %class.A** %this.addr
     39   %0 = bitcast %class.A* %this1 to i8***, !dbg !72
     40   store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @_ZTV1A, i64 0, i64 2), i8*** %0, !dbg !72
     41   %m_int = getelementptr inbounds %class.A, %class.A* %this1, i32 0, i32 1, !dbg !72
     42   %1 = load i32, i32* %i.addr, align 4, !dbg !72
     43   store i32 %1, i32* %m_int, align 4, !dbg !72
     44   ret void, !dbg !73
     45 }
     46 
     47 ; Function Attrs: nounwind readnone
     48 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
     49 
     50 ; Function Attrs: nounwind uwtable
     51 define void @_ZN1AC2ERKS_(%class.A* %this, %class.A* %rhs) unnamed_addr #0 align 2 !dbg !50 {
     52 entry:
     53   %this.addr = alloca %class.A*, align 8
     54   %rhs.addr = alloca %class.A*, align 8
     55   store %class.A* %this, %class.A** %this.addr, align 8
     56   call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !74, metadata !DIExpression()), !dbg !75
     57   store %class.A* %rhs, %class.A** %rhs.addr, align 8
     58   call void @llvm.dbg.declare(metadata %class.A** %rhs.addr, metadata !76, metadata !DIExpression()), !dbg !77
     59   %this1 = load %class.A*, %class.A** %this.addr
     60   %0 = bitcast %class.A* %this1 to i8***, !dbg !78
     61   store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @_ZTV1A, i64 0, i64 2), i8*** %0, !dbg !78
     62   %m_int = getelementptr inbounds %class.A, %class.A* %this1, i32 0, i32 1, !dbg !78
     63   %1 = load %class.A*, %class.A** %rhs.addr, align 8, !dbg !78
     64   %m_int2 = getelementptr inbounds %class.A, %class.A* %1, i32 0, i32 1, !dbg !78
     65   %2 = load i32, i32* %m_int2, align 4, !dbg !78
     66   store i32 %2, i32* %m_int, align 4, !dbg !78
     67   ret void, !dbg !79
     68 }
     69 
     70 ; Function Attrs: nounwind uwtable
     71 define %class.A* @_ZN1AaSERKS_(%class.A* %this, %class.A* %rhs) #0 align 2 !dbg !51 {
     72 entry:
     73   %this.addr = alloca %class.A*, align 8
     74   %rhs.addr = alloca %class.A*, align 8
     75   store %class.A* %this, %class.A** %this.addr, align 8
     76   call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !80, metadata !DIExpression()), !dbg !81
     77   store %class.A* %rhs, %class.A** %rhs.addr, align 8
     78   call void @llvm.dbg.declare(metadata %class.A** %rhs.addr, metadata !82, metadata !DIExpression()), !dbg !83
     79   %this1 = load %class.A*, %class.A** %this.addr
     80   %0 = load %class.A*, %class.A** %rhs.addr, align 8, !dbg !84
     81   %m_int = getelementptr inbounds %class.A, %class.A* %0, i32 0, i32 1, !dbg !84
     82   %1 = load i32, i32* %m_int, align 4, !dbg !84
     83   %m_int2 = getelementptr inbounds %class.A, %class.A* %this1, i32 0, i32 1, !dbg !84
     84   store i32 %1, i32* %m_int2, align 4, !dbg !84
     85   ret %class.A* %this1, !dbg !85
     86 }
     87 
     88 ; Function Attrs: nounwind uwtable
     89 define i32 @_ZN1A7get_intEv(%class.A* %this) #0 align 2 !dbg !52 {
     90 entry:
     91   %this.addr = alloca %class.A*, align 8
     92   store %class.A* %this, %class.A** %this.addr, align 8
     93   call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !86, metadata !DIExpression()), !dbg !87
     94   %this1 = load %class.A*, %class.A** %this.addr
     95   %m_int = getelementptr inbounds %class.A, %class.A* %this1, i32 0, i32 1, !dbg !88
     96   %0 = load i32, i32* %m_int, align 4, !dbg !88
     97   ret i32 %0, !dbg !88
     98 }
     99 
    100 ; Function Attrs: uwtable
    101 define void @_ZN1B9AInstanceEv(%class.A* noalias sret %agg.result, %class.B* %this) #2 align 2 !dbg !53 {
    102 entry:
    103   %this.addr = alloca %class.B*, align 8
    104   %nrvo = alloca i1
    105   %cleanup.dest.slot = alloca i32
    106   store %class.B* %this, %class.B** %this.addr, align 8
    107   call void @llvm.dbg.declare(metadata %class.B** %this.addr, metadata !89, metadata !DIExpression()), !dbg !91
    108   %this1 = load %class.B*, %class.B** %this.addr
    109   store i1 false, i1* %nrvo, !dbg !92
    110   call void @llvm.dbg.declare(metadata %class.A* %agg.result, metadata !93, metadata !DIExpression()), !dbg !92
    111   call void @_ZN1AC1Ei(%class.A* %agg.result, i32 12), !dbg !92
    112   store i1 true, i1* %nrvo, !dbg !94
    113   store i32 1, i32* %cleanup.dest.slot
    114   %nrvo.val = load i1, i1* %nrvo, !dbg !95
    115   br i1 %nrvo.val, label %nrvo.skipdtor, label %nrvo.unused, !dbg !95
    116 
    117 nrvo.unused:                                      ; preds = %entry
    118   call void @_ZN1AD2Ev(%class.A* %agg.result), !dbg !96
    119   br label %nrvo.skipdtor, !dbg !96
    120 
    121 nrvo.skipdtor:                                    ; preds = %nrvo.unused, %entry
    122   ret void, !dbg !98
    123 }
    124 
    125 ; Function Attrs: nounwind uwtable
    126 define linkonce_odr void @_ZN1AD2Ev(%class.A* %this) unnamed_addr #0 align 2 !dbg !63 {
    127 entry:
    128   %this.addr = alloca %class.A*, align 8
    129   store %class.A* %this, %class.A** %this.addr, align 8
    130   call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !101, metadata !DIExpression()), !dbg !102
    131   %this1 = load %class.A*, %class.A** %this.addr
    132   ret void, !dbg !103
    133 }
    134 
    135 ; Function Attrs: uwtable
    136 define i32 @main(i32 %argc, i8** %argv) #2 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) !dbg !54 {
    137 entry:
    138   %retval = alloca i32, align 4
    139   %argc.addr = alloca i32, align 4
    140   %argv.addr = alloca i8**, align 8
    141   %b = alloca %class.B, align 1
    142   %return_val = alloca i32, align 4
    143   %temp.lvalue = alloca %class.A, align 8
    144   %exn.slot = alloca i8*
    145   %ehselector.slot = alloca i32
    146   %a = alloca %class.A, align 8
    147   %cleanup.dest.slot = alloca i32
    148   store i32 0, i32* %retval
    149   store i32 %argc, i32* %argc.addr, align 4
    150   call void @llvm.dbg.declare(metadata i32* %argc.addr, metadata !104, metadata !DIExpression()), !dbg !105
    151   store i8** %argv, i8*** %argv.addr, align 8
    152   call void @llvm.dbg.declare(metadata i8*** %argv.addr, metadata !106, metadata !DIExpression()), !dbg !105
    153   call void @llvm.dbg.declare(metadata %class.B* %b, metadata !107, metadata !DIExpression()), !dbg !108
    154   call void @_ZN1BC2Ev(%class.B* %b), !dbg !108
    155   call void @llvm.dbg.declare(metadata i32* %return_val, metadata !109, metadata !DIExpression()), !dbg !110
    156   call void @_ZN1B9AInstanceEv(%class.A* sret %temp.lvalue, %class.B* %b), !dbg !110
    157   %call = invoke i32 @_ZN1A7get_intEv(%class.A* %temp.lvalue)
    158           to label %invoke.cont unwind label %lpad, !dbg !110
    159 
    160 invoke.cont:                                      ; preds = %entry
    161   call void @_ZN1AD2Ev(%class.A* %temp.lvalue), !dbg !111
    162   store i32 %call, i32* %return_val, align 4, !dbg !111
    163   call void @llvm.dbg.declare(metadata %class.A* %a, metadata !113, metadata !DIExpression()), !dbg !114
    164   call void @_ZN1B9AInstanceEv(%class.A* sret %a, %class.B* %b), !dbg !114
    165   %0 = load i32, i32* %return_val, align 4, !dbg !115
    166   store i32 %0, i32* %retval, !dbg !115
    167   store i32 1, i32* %cleanup.dest.slot
    168   call void @_ZN1AD2Ev(%class.A* %a), !dbg !116
    169   %1 = load i32, i32* %retval, !dbg !116
    170   ret i32 %1, !dbg !116
    171 
    172 lpad:                                             ; preds = %entry
    173   %2 = landingpad { i8*, i32 }
    174           cleanup, !dbg !116
    175   %3 = extractvalue { i8*, i32 } %2, 0, !dbg !116
    176   store i8* %3, i8** %exn.slot, !dbg !116
    177   %4 = extractvalue { i8*, i32 } %2, 1, !dbg !116
    178   store i32 %4, i32* %ehselector.slot, !dbg !116
    179   invoke void @_ZN1AD2Ev(%class.A* %temp.lvalue)
    180           to label %invoke.cont1 unwind label %terminate.lpad, !dbg !116
    181 
    182 invoke.cont1:                                     ; preds = %lpad
    183   br label %eh.resume, !dbg !117
    184 
    185 eh.resume:                                        ; preds = %invoke.cont1
    186   %exn = load i8*, i8** %exn.slot, !dbg !119
    187   %sel = load i32, i32* %ehselector.slot, !dbg !119
    188   %lpad.val = insertvalue { i8*, i32 } undef, i8* %exn, 0, !dbg !119
    189   %lpad.val2 = insertvalue { i8*, i32 } %lpad.val, i32 %sel, 1, !dbg !119
    190   resume { i8*, i32 } %lpad.val2, !dbg !119
    191 
    192 terminate.lpad:                                   ; preds = %lpad
    193   %5 = landingpad { i8*, i32 }
    194           catch i8* null, !dbg !121
    195   %6 = extractvalue { i8*, i32 } %5, 0, !dbg !121
    196   call void @__clang_call_terminate(i8* %6) #5, !dbg !121
    197   unreachable, !dbg !121
    198 }
    199 
    200 ; Function Attrs: nounwind uwtable
    201 define linkonce_odr void @_ZN1BC2Ev(%class.B* %this) unnamed_addr #0 align 2 !dbg !62 {
    202 entry:
    203   %this.addr = alloca %class.B*, align 8
    204   store %class.B* %this, %class.B** %this.addr, align 8
    205   call void @llvm.dbg.declare(metadata %class.B** %this.addr, metadata !123, metadata !DIExpression()), !dbg !124
    206   %this1 = load %class.B*, %class.B** %this.addr
    207   ret void, !dbg !125
    208 }
    209 
    210 declare i32 @__gxx_personality_v0(...)
    211 
    212 ; Function Attrs: noinline noreturn nounwind
    213 define linkonce_odr hidden void @__clang_call_terminate(i8*) #3 {
    214   %2 = call i8* @__cxa_begin_catch(i8* %0) #6
    215   call void @_ZSt9terminatev() #5
    216   unreachable
    217 }
    218 
    219 declare i8* @__cxa_begin_catch(i8*)
    220 
    221 declare void @_ZSt9terminatev()
    222 
    223 ; Function Attrs: uwtable
    224 define linkonce_odr void @_ZN1AD0Ev(%class.A* %this) unnamed_addr #2 align 2 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) !dbg !61 {
    225 entry:
    226   %this.addr = alloca %class.A*, align 8
    227   %exn.slot = alloca i8*
    228   %ehselector.slot = alloca i32
    229   store %class.A* %this, %class.A** %this.addr, align 8
    230   call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !126, metadata !DIExpression()), !dbg !127
    231   %this1 = load %class.A*, %class.A** %this.addr
    232   invoke void @_ZN1AD2Ev(%class.A* %this1)
    233           to label %invoke.cont unwind label %lpad, !dbg !128
    234 
    235 invoke.cont:                                      ; preds = %entry
    236   %0 = bitcast %class.A* %this1 to i8*, !dbg !129
    237   call void @_ZdlPv(i8* %0) #7, !dbg !129
    238   ret void, !dbg !129
    239 
    240 lpad:                                             ; preds = %entry
    241   %1 = landingpad { i8*, i32 }
    242           cleanup, !dbg !131
    243   %2 = extractvalue { i8*, i32 } %1, 0, !dbg !131
    244   store i8* %2, i8** %exn.slot, !dbg !131
    245   %3 = extractvalue { i8*, i32 } %1, 1, !dbg !131
    246   store i32 %3, i32* %ehselector.slot, !dbg !131
    247   %4 = bitcast %class.A* %this1 to i8*, !dbg !131
    248   call void @_ZdlPv(i8* %4) #7, !dbg !131
    249   br label %eh.resume, !dbg !131
    250 
    251 eh.resume:                                        ; preds = %lpad
    252   %exn = load i8*, i8** %exn.slot, !dbg !133
    253   %sel = load i32, i32* %ehselector.slot, !dbg !133
    254   %lpad.val = insertvalue { i8*, i32 } undef, i8* %exn, 0, !dbg !133
    255   %lpad.val2 = insertvalue { i8*, i32 } %lpad.val, i32 %sel, 1, !dbg !133
    256   resume { i8*, i32 } %lpad.val2, !dbg !133
    257 }
    258 
    259 ; Function Attrs: nobuiltin nounwind
    260 declare void @_ZdlPv(i8*) #4
    261 
    262 attributes #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" }
    263 attributes #1 = { nounwind readnone }
    264 attributes #2 = { 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" }
    265 attributes #3 = { noinline noreturn nounwind }
    266 attributes #4 = { nobuiltin nounwind "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" }
    267 attributes #5 = { noreturn nounwind }
    268 attributes #6 = { nounwind }
    269 attributes #7 = { builtin nounwind }
    270 
    271 !llvm.dbg.cu = !{!0}
    272 !llvm.module.flags = !{!64, !65}
    273 !llvm.ident = !{!66}
    274 
    275 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5.0 (trunk 203283) (llvm/trunk 203307)", isOptimized: false, splitDebugFilename: "sret.dwo", emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !3, globals: !2, imports: !2)
    276 !1 = !DIFile(filename: "sret.cpp", directory: "/usr/local/google/home/echristo/tmp")
    277 !2 = !{}
    278 !3 = !{!4, !37}
    279 !4 = !DICompositeType(tag: DW_TAG_class_type, name: "A", line: 1, size: 128, align: 64, file: !1, elements: !5, vtableHolder: !4, identifier: "_ZTS1A")
    280 !5 = !{!6, !13, !14, !19, !25, !29, !33}
    281 !6 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$A", size: 64, flags: DIFlagArtificial, file: !1, scope: !7, baseType: !8)
    282 !7 = !DIFile(filename: "sret.cpp", directory: "/usr/local/google/home/echristo/tmp")
    283 !8 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, baseType: !9)
    284 !9 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", size: 64, baseType: !10)
    285 !10 = !DISubroutineType(types: !11)
    286 !11 = !{!12}
    287 !12 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
    288 !13 = !DIDerivedType(tag: DW_TAG_member, name: "m_int", line: 13, size: 32, align: 32, offset: 64, flags: DIFlagProtected, file: !1, scope: !4, baseType: !12)
    289 !14 = !DISubprogram(name: "A", line: 4, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 4, file: !1, scope: !4, type: !15)
    290 !15 = !DISubroutineType(types: !16)
    291 !16 = !{null, !17, !12}
    292 !17 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer, baseType: !4)
    293 !19 = !DISubprogram(name: "A", line: 5, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 5, file: !1, scope: !4, type: !20)
    294 !20 = !DISubroutineType(types: !21)
    295 !21 = !{null, !17, !22}
    296 !22 = !DIDerivedType(tag: DW_TAG_reference_type, size: 64, align: 64, baseType: !23)
    297 !23 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !4)
    298 !25 = !DISubprogram(name: "operator=", linkageName: "_ZN1AaSERKS_", line: 7, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 7, file: !1, scope: !4, type: !26)
    299 !26 = !DISubroutineType(types: !27)
    300 !27 = !{!22, !17, !22}
    301 !29 = !DISubprogram(name: "~A", line: 8, isLocal: false, isDefinition: false, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 8, file: !1, scope: !4, type: !30, containingType: !4)
    302 !30 = !DISubroutineType(types: !31)
    303 !31 = !{null, !17}
    304 !33 = !DISubprogram(name: "get_int", linkageName: "_ZN1A7get_intEv", line: 10, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 10, file: !1, scope: !4, type: !34)
    305 !34 = !DISubroutineType(types: !35)
    306 !35 = !{!12, !17}
    307 !37 = !DICompositeType(tag: DW_TAG_class_type, name: "B", line: 38, size: 8, align: 8, file: !1, elements: !38, identifier: "_ZTS1B")
    308 !38 = !{!39, !44}
    309 !39 = !DISubprogram(name: "B", line: 41, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 41, file: !1, scope: !37, type: !40)
    310 !40 = !DISubroutineType(types: !41)
    311 !41 = !{null, !42}
    312 !42 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer, baseType: !37)
    313 !44 = !DISubprogram(name: "AInstance", linkageName: "_ZN1B9AInstanceEv", line: 43, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 43, file: !1, scope: !37, type: !45)
    314 !45 = !DISubroutineType(types: !46)
    315 !46 = !{!4, !42}
    316 !49 = distinct !DISubprogram(name: "A", linkageName: "_ZN1AC2Ei", line: 16, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 18, file: !1, scope: !4, type: !15, declaration: !14, retainedNodes: !2)
    317 !50 = distinct !DISubprogram(name: "A", linkageName: "_ZN1AC2ERKS_", line: 21, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 23, file: !1, scope: !4, type: !20, declaration: !19, retainedNodes: !2)
    318 !51 = distinct !DISubprogram(name: "operator=", linkageName: "_ZN1AaSERKS_", line: 27, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 28, file: !1, scope: !4, type: !26, declaration: !25, retainedNodes: !2)
    319 !52 = distinct !DISubprogram(name: "get_int", linkageName: "_ZN1A7get_intEv", line: 33, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 34, file: !1, scope: !4, type: !34, declaration: !33, retainedNodes: !2)
    320 !53 = distinct !DISubprogram(name: "AInstance", linkageName: "_ZN1B9AInstanceEv", line: 47, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 48, file: !1, scope: !37, type: !45, declaration: !44, retainedNodes: !2)
    321 !54 = distinct !DISubprogram(name: "main", line: 53, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 54, file: !1, scope: !7, type: !55, retainedNodes: !2)
    322 !55 = !DISubroutineType(types: !56)
    323 !56 = !{!12, !12, !57}
    324 !57 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !58)
    325 !58 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !59)
    326 !59 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !60)
    327 !60 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
    328 !61 = distinct !DISubprogram(name: "~A", linkageName: "_ZN1AD0Ev", line: 8, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 8, file: !1, scope: !4, type: !30, declaration: !29, retainedNodes: !2)
    329 !62 = distinct !DISubprogram(name: "B", linkageName: "_ZN1BC2Ev", line: 41, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 41, file: !1, scope: !37, type: !40, declaration: !39, retainedNodes: !2)
    330 !63 = distinct !DISubprogram(name: "~A", linkageName: "_ZN1AD2Ev", line: 8, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 8, file: !1, scope: !4, type: !30, declaration: !29, retainedNodes: !2)
    331 !64 = !{i32 2, !"Dwarf Version", i32 4}
    332 !65 = !{i32 1, !"Debug Info Version", i32 3}
    333 !66 = !{!"clang version 3.5.0 (trunk 203283) (llvm/trunk 203307)"}
    334 !67 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !49, type: !68)
    335 !68 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !4)
    336 !69 = !DILocation(line: 0, scope: !49)
    337 !70 = !DILocalVariable(name: "i", line: 16, arg: 2, scope: !49, file: !7, type: !12)
    338 !71 = !DILocation(line: 16, scope: !49)
    339 !72 = !DILocation(line: 18, scope: !49)
    340 !73 = !DILocation(line: 19, scope: !49)
    341 !74 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !50, type: !68)
    342 !75 = !DILocation(line: 0, scope: !50)
    343 !76 = !DILocalVariable(name: "rhs", line: 21, arg: 2, scope: !50, file: !7, type: !22)
    344 !77 = !DILocation(line: 21, scope: !50)
    345 !78 = !DILocation(line: 23, scope: !50)
    346 !79 = !DILocation(line: 24, scope: !50)
    347 !80 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !51, type: !68)
    348 !81 = !DILocation(line: 0, scope: !51)
    349 !82 = !DILocalVariable(name: "rhs", line: 27, arg: 2, scope: !51, file: !7, type: !22)
    350 !83 = !DILocation(line: 27, scope: !51)
    351 !84 = !DILocation(line: 29, scope: !51)
    352 !85 = !DILocation(line: 30, scope: !51)
    353 !86 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !52, type: !68)
    354 !87 = !DILocation(line: 0, scope: !52)
    355 !88 = !DILocation(line: 35, scope: !52)
    356 !89 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !53, type: !90)
    357 !90 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !37)
    358 !91 = !DILocation(line: 0, scope: !53)
    359 !92 = !DILocation(line: 49, scope: !53)
    360 !93 = !DILocalVariable(name: "a", line: 49, scope: !53, file: !7, type: !4)
    361 !94 = !DILocation(line: 50, scope: !53)
    362 !95 = !DILocation(line: 51, scope: !53)
    363 !96 = !DILocation(line: 51, scope: !97)
    364 !97 = distinct !DILexicalBlock(line: 51, column: 0, file: !1, scope: !53)
    365 !98 = !DILocation(line: 51, scope: !99)
    366 !99 = distinct !DILexicalBlock(line: 51, column: 0, file: !1, scope: !100)
    367 !100 = distinct !DILexicalBlock(line: 51, column: 0, file: !1, scope: !53)
    368 !101 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !63, type: !68)
    369 !102 = !DILocation(line: 0, scope: !63)
    370 !103 = !DILocation(line: 8, scope: !63)
    371 !104 = !DILocalVariable(name: "argc", line: 53, arg: 1, scope: !54, file: !7, type: !12)
    372 !105 = !DILocation(line: 53, scope: !54)
    373 !106 = !DILocalVariable(name: "argv", line: 53, arg: 2, scope: !54, file: !7, type: !57)
    374 !107 = !DILocalVariable(name: "b", line: 55, scope: !54, file: !7, type: !37)
    375 !108 = !DILocation(line: 55, scope: !54)
    376 !109 = !DILocalVariable(name: "return_val", line: 56, scope: !54, file: !7, type: !12)
    377 !110 = !DILocation(line: 56, scope: !54)
    378 !111 = !DILocation(line: 56, scope: !112)
    379 !112 = distinct !DILexicalBlock(line: 56, column: 0, file: !1, scope: !54)
    380 !113 = !DILocalVariable(name: "a", line: 58, scope: !54, file: !7, type: !4)
    381 !114 = !DILocation(line: 58, scope: !54)
    382 !115 = !DILocation(line: 59, scope: !54)
    383 !116 = !DILocation(line: 60, scope: !54)
    384 !117 = !DILocation(line: 60, scope: !118)
    385 !118 = distinct !DILexicalBlock(line: 60, column: 0, file: !1, scope: !54)
    386 !119 = !DILocation(line: 60, scope: !120)
    387 !120 = distinct !DILexicalBlock(line: 60, column: 0, file: !1, scope: !54)
    388 !121 = !DILocation(line: 60, scope: !122)
    389 !122 = distinct !DILexicalBlock(line: 60, column: 0, file: !1, scope: !54)
    390 !123 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !62, type: !90)
    391 !124 = !DILocation(line: 0, scope: !62)
    392 !125 = !DILocation(line: 41, scope: !62)
    393 !126 = !DILocalVariable(name: "this", arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !61, type: !68)
    394 !127 = !DILocation(line: 0, scope: !61)
    395 !128 = !DILocation(line: 8, scope: !61)
    396 !129 = !DILocation(line: 8, scope: !130)
    397 !130 = distinct !DILexicalBlock(line: 8, column: 0, file: !1, scope: !61)
    398 !131 = !DILocation(line: 8, scope: !132)
    399 !132 = distinct !DILexicalBlock(line: 8, column: 0, file: !1, scope: !61)
    400 !133 = !DILocation(line: 8, scope: !134)
    401 !134 = distinct !DILexicalBlock(line: 8, column: 0, file: !1, scope: !61)
    402