1; RUN: llc -split-dwarf=Enable -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t 2; RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s 3 4; Based on the debuginfo-tests/sret.cpp code. 5 6; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1) 7; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1) 8 9%class.A = type { i32 (...)**, i32 } 10%class.B = type { i8 } 11 12@_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*)] 13@_ZTVN10__cxxabiv117__class_type_infoE = external global i8* 14@_ZTS1A = linkonce_odr constant [3 x i8] c"1A\00" 15@_ZTI1A = linkonce_odr constant { i8*, i8* } { i8* bitcast (i8** getelementptr inbounds (i8** @_ZTVN10__cxxabiv117__class_type_infoE, i64 2) to i8*), i8* getelementptr inbounds ([3 x i8]* @_ZTS1A, i32 0, i32 0) } 16 17@_ZN1AC1Ei = alias void (%class.A*, i32)* @_ZN1AC2Ei 18@_ZN1AC1ERKS_ = alias void (%class.A*, %class.A*)* @_ZN1AC2ERKS_ 19 20; Function Attrs: nounwind uwtable 21define void @_ZN1AC2Ei(%class.A* %this, i32 %i) unnamed_addr #0 align 2 { 22entry: 23 %this.addr = alloca %class.A*, align 8 24 %i.addr = alloca i32, align 4 25 store %class.A* %this, %class.A** %this.addr, align 8 26 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !67, metadata !{!"0x102"}), !dbg !69 27 store i32 %i, i32* %i.addr, align 4 28 call void @llvm.dbg.declare(metadata i32* %i.addr, metadata !70, metadata !{!"0x102"}), !dbg !71 29 %this1 = load %class.A** %this.addr 30 %0 = bitcast %class.A* %this1 to i8***, !dbg !72 31 store i8** getelementptr inbounds ([4 x i8*]* @_ZTV1A, i64 0, i64 2), i8*** %0, !dbg !72 32 %m_int = getelementptr inbounds %class.A* %this1, i32 0, i32 1, !dbg !72 33 %1 = load i32* %i.addr, align 4, !dbg !72 34 store i32 %1, i32* %m_int, align 4, !dbg !72 35 ret void, !dbg !73 36} 37 38; Function Attrs: nounwind readnone 39declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 40 41; Function Attrs: nounwind uwtable 42define void @_ZN1AC2ERKS_(%class.A* %this, %class.A* %rhs) unnamed_addr #0 align 2 { 43entry: 44 %this.addr = alloca %class.A*, align 8 45 %rhs.addr = alloca %class.A*, align 8 46 store %class.A* %this, %class.A** %this.addr, align 8 47 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !74, metadata !{!"0x102"}), !dbg !75 48 store %class.A* %rhs, %class.A** %rhs.addr, align 8 49 call void @llvm.dbg.declare(metadata %class.A** %rhs.addr, metadata !76, metadata !{!"0x102"}), !dbg !77 50 %this1 = load %class.A** %this.addr 51 %0 = bitcast %class.A* %this1 to i8***, !dbg !78 52 store i8** getelementptr inbounds ([4 x i8*]* @_ZTV1A, i64 0, i64 2), i8*** %0, !dbg !78 53 %m_int = getelementptr inbounds %class.A* %this1, i32 0, i32 1, !dbg !78 54 %1 = load %class.A** %rhs.addr, align 8, !dbg !78 55 %m_int2 = getelementptr inbounds %class.A* %1, i32 0, i32 1, !dbg !78 56 %2 = load i32* %m_int2, align 4, !dbg !78 57 store i32 %2, i32* %m_int, align 4, !dbg !78 58 ret void, !dbg !79 59} 60 61; Function Attrs: nounwind uwtable 62define %class.A* @_ZN1AaSERKS_(%class.A* %this, %class.A* %rhs) #0 align 2 { 63entry: 64 %this.addr = alloca %class.A*, align 8 65 %rhs.addr = alloca %class.A*, align 8 66 store %class.A* %this, %class.A** %this.addr, align 8 67 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !80, metadata !{!"0x102"}), !dbg !81 68 store %class.A* %rhs, %class.A** %rhs.addr, align 8 69 call void @llvm.dbg.declare(metadata %class.A** %rhs.addr, metadata !82, metadata !{!"0x102"}), !dbg !83 70 %this1 = load %class.A** %this.addr 71 %0 = load %class.A** %rhs.addr, align 8, !dbg !84 72 %m_int = getelementptr inbounds %class.A* %0, i32 0, i32 1, !dbg !84 73 %1 = load i32* %m_int, align 4, !dbg !84 74 %m_int2 = getelementptr inbounds %class.A* %this1, i32 0, i32 1, !dbg !84 75 store i32 %1, i32* %m_int2, align 4, !dbg !84 76 ret %class.A* %this1, !dbg !85 77} 78 79; Function Attrs: nounwind uwtable 80define i32 @_ZN1A7get_intEv(%class.A* %this) #0 align 2 { 81entry: 82 %this.addr = alloca %class.A*, align 8 83 store %class.A* %this, %class.A** %this.addr, align 8 84 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !86, metadata !{!"0x102"}), !dbg !87 85 %this1 = load %class.A** %this.addr 86 %m_int = getelementptr inbounds %class.A* %this1, i32 0, i32 1, !dbg !88 87 %0 = load i32* %m_int, align 4, !dbg !88 88 ret i32 %0, !dbg !88 89} 90 91; Function Attrs: uwtable 92define void @_ZN1B9AInstanceEv(%class.A* noalias sret %agg.result, %class.B* %this) #2 align 2 { 93entry: 94 %this.addr = alloca %class.B*, align 8 95 %nrvo = alloca i1 96 %cleanup.dest.slot = alloca i32 97 store %class.B* %this, %class.B** %this.addr, align 8 98 call void @llvm.dbg.declare(metadata %class.B** %this.addr, metadata !89, metadata !{!"0x102"}), !dbg !91 99 %this1 = load %class.B** %this.addr 100 store i1 false, i1* %nrvo, !dbg !92 101 call void @llvm.dbg.declare(metadata %class.A* %agg.result, metadata !93, metadata !{!"0x102"}), !dbg !92 102 call void @_ZN1AC1Ei(%class.A* %agg.result, i32 12), !dbg !92 103 store i1 true, i1* %nrvo, !dbg !94 104 store i32 1, i32* %cleanup.dest.slot 105 %nrvo.val = load i1* %nrvo, !dbg !95 106 br i1 %nrvo.val, label %nrvo.skipdtor, label %nrvo.unused, !dbg !95 107 108nrvo.unused: ; preds = %entry 109 call void @_ZN1AD2Ev(%class.A* %agg.result), !dbg !96 110 br label %nrvo.skipdtor, !dbg !96 111 112nrvo.skipdtor: ; preds = %nrvo.unused, %entry 113 ret void, !dbg !98 114} 115 116; Function Attrs: nounwind uwtable 117define linkonce_odr void @_ZN1AD2Ev(%class.A* %this) unnamed_addr #0 align 2 { 118entry: 119 %this.addr = alloca %class.A*, align 8 120 store %class.A* %this, %class.A** %this.addr, align 8 121 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !101, metadata !{!"0x102"}), !dbg !102 122 %this1 = load %class.A** %this.addr 123 ret void, !dbg !103 124} 125 126; Function Attrs: uwtable 127define i32 @main(i32 %argc, i8** %argv) #2 { 128entry: 129 %retval = alloca i32, align 4 130 %argc.addr = alloca i32, align 4 131 %argv.addr = alloca i8**, align 8 132 %b = alloca %class.B, align 1 133 %return_val = alloca i32, align 4 134 %temp.lvalue = alloca %class.A, align 8 135 %exn.slot = alloca i8* 136 %ehselector.slot = alloca i32 137 %a = alloca %class.A, align 8 138 %cleanup.dest.slot = alloca i32 139 store i32 0, i32* %retval 140 store i32 %argc, i32* %argc.addr, align 4 141 call void @llvm.dbg.declare(metadata i32* %argc.addr, metadata !104, metadata !{!"0x102"}), !dbg !105 142 store i8** %argv, i8*** %argv.addr, align 8 143 call void @llvm.dbg.declare(metadata i8*** %argv.addr, metadata !106, metadata !{!"0x102"}), !dbg !105 144 call void @llvm.dbg.declare(metadata %class.B* %b, metadata !107, metadata !{!"0x102"}), !dbg !108 145 call void @_ZN1BC2Ev(%class.B* %b), !dbg !108 146 call void @llvm.dbg.declare(metadata i32* %return_val, metadata !109, metadata !{!"0x102"}), !dbg !110 147 call void @_ZN1B9AInstanceEv(%class.A* sret %temp.lvalue, %class.B* %b), !dbg !110 148 %call = invoke i32 @_ZN1A7get_intEv(%class.A* %temp.lvalue) 149 to label %invoke.cont unwind label %lpad, !dbg !110 150 151invoke.cont: ; preds = %entry 152 call void @_ZN1AD2Ev(%class.A* %temp.lvalue), !dbg !111 153 store i32 %call, i32* %return_val, align 4, !dbg !111 154 call void @llvm.dbg.declare(metadata %class.A* %a, metadata !113, metadata !{!"0x102"}), !dbg !114 155 call void @_ZN1B9AInstanceEv(%class.A* sret %a, %class.B* %b), !dbg !114 156 %0 = load i32* %return_val, align 4, !dbg !115 157 store i32 %0, i32* %retval, !dbg !115 158 store i32 1, i32* %cleanup.dest.slot 159 call void @_ZN1AD2Ev(%class.A* %a), !dbg !116 160 %1 = load i32* %retval, !dbg !116 161 ret i32 %1, !dbg !116 162 163lpad: ; preds = %entry 164 %2 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) 165 cleanup, !dbg !116 166 %3 = extractvalue { i8*, i32 } %2, 0, !dbg !116 167 store i8* %3, i8** %exn.slot, !dbg !116 168 %4 = extractvalue { i8*, i32 } %2, 1, !dbg !116 169 store i32 %4, i32* %ehselector.slot, !dbg !116 170 invoke void @_ZN1AD2Ev(%class.A* %temp.lvalue) 171 to label %invoke.cont1 unwind label %terminate.lpad, !dbg !116 172 173invoke.cont1: ; preds = %lpad 174 br label %eh.resume, !dbg !117 175 176eh.resume: ; preds = %invoke.cont1 177 %exn = load i8** %exn.slot, !dbg !119 178 %sel = load i32* %ehselector.slot, !dbg !119 179 %lpad.val = insertvalue { i8*, i32 } undef, i8* %exn, 0, !dbg !119 180 %lpad.val2 = insertvalue { i8*, i32 } %lpad.val, i32 %sel, 1, !dbg !119 181 resume { i8*, i32 } %lpad.val2, !dbg !119 182 183terminate.lpad: ; preds = %lpad 184 %5 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) 185 catch i8* null, !dbg !121 186 %6 = extractvalue { i8*, i32 } %5, 0, !dbg !121 187 call void @__clang_call_terminate(i8* %6) #5, !dbg !121 188 unreachable, !dbg !121 189} 190 191; Function Attrs: nounwind uwtable 192define linkonce_odr void @_ZN1BC2Ev(%class.B* %this) unnamed_addr #0 align 2 { 193entry: 194 %this.addr = alloca %class.B*, align 8 195 store %class.B* %this, %class.B** %this.addr, align 8 196 call void @llvm.dbg.declare(metadata %class.B** %this.addr, metadata !123, metadata !{!"0x102"}), !dbg !124 197 %this1 = load %class.B** %this.addr 198 ret void, !dbg !125 199} 200 201declare i32 @__gxx_personality_v0(...) 202 203; Function Attrs: noinline noreturn nounwind 204define linkonce_odr hidden void @__clang_call_terminate(i8*) #3 { 205 %2 = call i8* @__cxa_begin_catch(i8* %0) #6 206 call void @_ZSt9terminatev() #5 207 unreachable 208} 209 210declare i8* @__cxa_begin_catch(i8*) 211 212declare void @_ZSt9terminatev() 213 214; Function Attrs: uwtable 215define linkonce_odr void @_ZN1AD0Ev(%class.A* %this) unnamed_addr #2 align 2 { 216entry: 217 %this.addr = alloca %class.A*, align 8 218 %exn.slot = alloca i8* 219 %ehselector.slot = alloca i32 220 store %class.A* %this, %class.A** %this.addr, align 8 221 call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !126, metadata !{!"0x102"}), !dbg !127 222 %this1 = load %class.A** %this.addr 223 invoke void @_ZN1AD2Ev(%class.A* %this1) 224 to label %invoke.cont unwind label %lpad, !dbg !128 225 226invoke.cont: ; preds = %entry 227 %0 = bitcast %class.A* %this1 to i8*, !dbg !129 228 call void @_ZdlPv(i8* %0) #7, !dbg !129 229 ret void, !dbg !129 230 231lpad: ; preds = %entry 232 %1 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) 233 cleanup, !dbg !131 234 %2 = extractvalue { i8*, i32 } %1, 0, !dbg !131 235 store i8* %2, i8** %exn.slot, !dbg !131 236 %3 = extractvalue { i8*, i32 } %1, 1, !dbg !131 237 store i32 %3, i32* %ehselector.slot, !dbg !131 238 %4 = bitcast %class.A* %this1 to i8*, !dbg !131 239 call void @_ZdlPv(i8* %4) #7, !dbg !131 240 br label %eh.resume, !dbg !131 241 242eh.resume: ; preds = %lpad 243 %exn = load i8** %exn.slot, !dbg !133 244 %sel = load i32* %ehselector.slot, !dbg !133 245 %lpad.val = insertvalue { i8*, i32 } undef, i8* %exn, 0, !dbg !133 246 %lpad.val2 = insertvalue { i8*, i32 } %lpad.val, i32 %sel, 1, !dbg !133 247 resume { i8*, i32 } %lpad.val2, !dbg !133 248} 249 250; Function Attrs: nobuiltin nounwind 251declare void @_ZdlPv(i8*) #4 252 253attributes #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" } 254attributes #1 = { nounwind readnone } 255attributes #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" } 256attributes #3 = { noinline noreturn nounwind } 257attributes #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" } 258attributes #5 = { noreturn nounwind } 259attributes #6 = { nounwind } 260attributes #7 = { builtin nounwind } 261 262!llvm.dbg.cu = !{!0} 263!llvm.module.flags = !{!64, !65} 264!llvm.ident = !{!66} 265 266!0 = !{!"0x11\004\00clang version 3.5.0 (trunk 203283) (llvm/trunk 203307)\000\00\000\00sret.dwo\001", !1, !2, !3, !48, !2, !2} ; [ DW_TAG_compile_unit ] [/usr/local/google/home/echristo/tmp/sret.cpp] [DW_LANG_C_plus_plus] 267!1 = !{!"sret.cpp", !"/usr/local/google/home/echristo/tmp"} 268!2 = !{} 269!3 = !{!4, !37} 270!4 = !{!"0x2\00A\001\00128\0064\000\000\000", !1, null, null, !5, !"_ZTS1A", null, !"_ZTS1A"} ; [ DW_TAG_class_type ] [A] [line 1, size 128, align 64, offset 0] [def] [from ] 271!5 = !{!6, !13, !14, !19, !25, !29, !33} 272!6 = !{!"0xd\00_vptr$A\000\0064\000\000\0064", !1, !7, !8} ; [ DW_TAG_member ] [_vptr$A] [line 0, size 64, align 0, offset 0] [artificial] [from ] 273!7 = !{!"0x29", !1} ; [ DW_TAG_file_type ] [/usr/local/google/home/echristo/tmp/sret.cpp] 274!8 = !{!"0xf\00\000\0064\000\000\000", null, null, !9} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 0, offset 0] [from __vtbl_ptr_type] 275!9 = !{!"0xf\00__vtbl_ptr_type\000\0064\000\000\000", null, null, !10} ; [ DW_TAG_pointer_type ] [__vtbl_ptr_type] [line 0, size 64, align 0, offset 0] [from ] 276!10 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !11, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 277!11 = !{!12} 278!12 = !{!"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] 279!13 = !{!"0xd\00m_int\0013\0032\0032\0064\002", !1, !"_ZTS1A", !12} ; [ DW_TAG_member ] [m_int] [line 13, size 32, align 32, offset 64] [protected] [from int] 280!14 = !{!"0x2e\00A\00A\00\004\000\000\000\006\00256\000\004", !1, !"_ZTS1A", !15, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 4] [A] 281!15 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !16, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 282!16 = !{null, !17, !12} 283!17 = !{!"0xf\00\000\0064\0064\000\001088", null, null, !"_ZTS1A"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1A] 284!19 = !{!"0x2e\00A\00A\00\005\000\000\000\006\00256\000\005", !1, !"_ZTS1A", !20, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 5] [A] 285!20 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !21, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 286!21 = !{null, !17, !22} 287!22 = !{!"0x10\00\000\000\000\000\000", null, null, !23} ; [ DW_TAG_reference_type ] [line 0, size 0, align 0, offset 0] [from ] 288!23 = !{!"0x26\00\000\000\000\000\000", null, null, !"_ZTS1A"} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from _ZTS1A] 289!25 = !{!"0x2e\00operator=\00operator=\00_ZN1AaSERKS_\007\000\000\000\006\00256\000\007", !1, !"_ZTS1A", !26, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 7] [operator=] 290!26 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !27, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 291!27 = !{!22, !17, !22} 292!29 = !{!"0x2e\00~A\00~A\00\008\000\000\001\006\00256\000\008", !1, !"_ZTS1A", !30, !"_ZTS1A", null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 8] [~A] 293!30 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !31, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 294!31 = !{null, !17} 295!33 = !{!"0x2e\00get_int\00get_int\00_ZN1A7get_intEv\0010\000\000\000\006\00256\000\0010", !1, !"_ZTS1A", !34, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 10] [get_int] 296!34 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !35, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 297!35 = !{!12, !17} 298!37 = !{!"0x2\00B\0038\008\008\000\000\000", !1, null, null, !38, null, null, !"_ZTS1B"} ; [ DW_TAG_class_type ] [B] [line 38, size 8, align 8, offset 0] [def] [from ] 299!38 = !{!39, !44} 300!39 = !{!"0x2e\00B\00B\00\0041\000\000\000\006\00256\000\0041", !1, !"_ZTS1B", !40, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 41] [B] 301!40 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !41, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 302!41 = !{null, !42} 303!42 = !{!"0xf\00\000\0064\0064\000\001088", null, null, !"_ZTS1B"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from _ZTS1B] 304!44 = !{!"0x2e\00AInstance\00AInstance\00_ZN1B9AInstanceEv\0043\000\000\000\006\00256\000\0043", !1, !"_ZTS1B", !45, null, null, null, i32 0, null} ; [ DW_TAG_subprogram ] [line 43] [AInstance] 305!45 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !46, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 306!46 = !{!4, !42} 307!48 = !{!49, !50, !51, !52, !53, !54, !61, !62, !63} 308!49 = !{!"0x2e\00A\00A\00_ZN1AC2Ei\0016\000\001\000\006\00256\000\0018", !1, !"_ZTS1A", !15, null, void (%class.A*, i32)* @_ZN1AC2Ei, null, !14, !2} ; [ DW_TAG_subprogram ] [line 16] [def] [scope 18] [A] 309!50 = !{!"0x2e\00A\00A\00_ZN1AC2ERKS_\0021\000\001\000\006\00256\000\0023", !1, !"_ZTS1A", !20, null, void (%class.A*, %class.A*)* @_ZN1AC2ERKS_, null, !19, !2} ; [ DW_TAG_subprogram ] [line 21] [def] [scope 23] [A] 310!51 = !{!"0x2e\00operator=\00operator=\00_ZN1AaSERKS_\0027\000\001\000\006\00256\000\0028", !1, !"_ZTS1A", !26, null, %class.A* (%class.A*, %class.A*)* @_ZN1AaSERKS_, null, !25, !2} ; [ DW_TAG_subprogram ] [line 27] [def] [scope 28] [operator=] 311!52 = !{!"0x2e\00get_int\00get_int\00_ZN1A7get_intEv\0033\000\001\000\006\00256\000\0034", !1, !"_ZTS1A", !34, null, i32 (%class.A*)* @_ZN1A7get_intEv, null, !33, !2} ; [ DW_TAG_subprogram ] [line 33] [def] [scope 34] [get_int] 312!53 = !{!"0x2e\00AInstance\00AInstance\00_ZN1B9AInstanceEv\0047\000\001\000\006\00256\000\0048", !1, !"_ZTS1B", !45, null, void (%class.A*, %class.B*)* @_ZN1B9AInstanceEv, null, !44, !2} ; [ DW_TAG_subprogram ] [line 47] [def] [scope 48] [AInstance] 313!54 = !{!"0x2e\00main\00main\00\0053\000\001\000\006\00256\000\0054", !1, !7, !55, null, i32 (i32, i8**)* @main, null, null, !2} ; [ DW_TAG_subprogram ] [line 53] [def] [scope 54] [main] 314!55 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !56, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 315!56 = !{!12, !12, !57} 316!57 = !{!"0xf\00\000\0064\0064\000\000", null, null, !58} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ] 317!58 = !{!"0xf\00\000\0064\0064\000\000", null, null, !59} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from ] 318!59 = !{!"0x26\00\000\000\000\000\000", null, null, !60} ; [ DW_TAG_const_type ] [line 0, size 0, align 0, offset 0] [from char] 319!60 = !{!"0x24\00char\000\008\008\000\000\006", null, null} ; [ DW_TAG_base_type ] [char] [line 0, size 8, align 8, offset 0, enc DW_ATE_signed_char] 320!61 = !{!"0x2e\00~A\00~A\00_ZN1AD0Ev\008\000\001\000\006\00256\000\008", !1, !"_ZTS1A", !30, null, void (%class.A*)* @_ZN1AD0Ev, null, !29, !2} ; [ DW_TAG_subprogram ] [line 8] [def] [~A] 321!62 = !{!"0x2e\00B\00B\00_ZN1BC2Ev\0041\000\001\000\006\00256\000\0041", !1, !"_ZTS1B", !40, null, void (%class.B*)* @_ZN1BC2Ev, null, !39, !2} ; [ DW_TAG_subprogram ] [line 41] [def] [B] 322!63 = !{!"0x2e\00~A\00~A\00_ZN1AD2Ev\008\000\001\000\006\00256\000\008", !1, !"_ZTS1A", !30, null, void (%class.A*)* @_ZN1AD2Ev, null, !29, !2} ; [ DW_TAG_subprogram ] [line 8] [def] [~A] 323!64 = !{i32 2, !"Dwarf Version", i32 4} 324!65 = !{i32 1, !"Debug Info Version", i32 2} 325!66 = !{!"clang version 3.5.0 (trunk 203283) (llvm/trunk 203307)"} 326!67 = !{!"0x101\00this\0016777216\001088", !49, null, !68} ; [ DW_TAG_arg_variable ] [this] [line 0] 327!68 = !{!"0xf\00\000\0064\0064\000\000", null, null, !"_ZTS1A"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from _ZTS1A] 328!69 = !MDLocation(line: 0, scope: !49) 329!70 = !{!"0x101\00i\0033554448\000", !49, !7, !12} ; [ DW_TAG_arg_variable ] [i] [line 16] 330!71 = !MDLocation(line: 16, scope: !49) 331!72 = !MDLocation(line: 18, scope: !49) 332!73 = !MDLocation(line: 19, scope: !49) 333!74 = !{!"0x101\00this\0016777216\001088", !50, null, !68} ; [ DW_TAG_arg_variable ] [this] [line 0] 334!75 = !MDLocation(line: 0, scope: !50) 335!76 = !{!"0x101\00rhs\0033554453\000", !50, !7, !22} ; [ DW_TAG_arg_variable ] [rhs] [line 21] 336!77 = !MDLocation(line: 21, scope: !50) 337!78 = !MDLocation(line: 23, scope: !50) 338!79 = !MDLocation(line: 24, scope: !50) 339!80 = !{!"0x101\00this\0016777216\001088", !51, null, !68} ; [ DW_TAG_arg_variable ] [this] [line 0] 340!81 = !MDLocation(line: 0, scope: !51) 341!82 = !{!"0x101\00rhs\0033554459\000", !51, !7, !22} ; [ DW_TAG_arg_variable ] [rhs] [line 27] 342!83 = !MDLocation(line: 27, scope: !51) 343!84 = !MDLocation(line: 29, scope: !51) 344!85 = !MDLocation(line: 30, scope: !51) 345!86 = !{!"0x101\00this\0016777216\001088", !52, null, !68} ; [ DW_TAG_arg_variable ] [this] [line 0] 346!87 = !MDLocation(line: 0, scope: !52) 347!88 = !MDLocation(line: 35, scope: !52) 348!89 = !{!"0x101\00this\0016777216\001088", !53, null, !90} ; [ DW_TAG_arg_variable ] [this] [line 0] 349!90 = !{!"0xf\00\000\0064\0064\000\000", null, null, !"_ZTS1B"} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from _ZTS1B] 350!91 = !MDLocation(line: 0, scope: !53) 351!92 = !MDLocation(line: 49, scope: !53) 352!93 = !{!"0x100\00a\0049\008192", !53, !7, !4} ; [ DW_TAG_auto_variable ] [a] [line 49] 353!94 = !MDLocation(line: 50, scope: !53) 354!95 = !MDLocation(line: 51, scope: !53) 355!96 = !MDLocation(line: 51, scope: !97) 356!97 = !{!"0xb\0051\000\002", !1, !53} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 357!98 = !MDLocation(line: 51, scope: !99) 358!99 = !{!"0xb\0051\000\003", !1, !100} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 359!100 = !{!"0xb\0051\000\001", !1, !53} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 360!101 = !{!"0x101\00this\0016777216\001088", !63, null, !68} ; [ DW_TAG_arg_variable ] [this] [line 0] 361!102 = !MDLocation(line: 0, scope: !63) 362!103 = !MDLocation(line: 8, scope: !63) 363!104 = !{!"0x101\00argc\0016777269\000", !54, !7, !12} ; [ DW_TAG_arg_variable ] [argc] [line 53] 364!105 = !MDLocation(line: 53, scope: !54) 365!106 = !{!"0x101\00argv\0033554485\000", !54, !7, !57} ; [ DW_TAG_arg_variable ] [argv] [line 53] 366!107 = !{!"0x100\00b\0055\000", !54, !7, !37} ; [ DW_TAG_auto_variable ] [b] [line 55] 367!108 = !MDLocation(line: 55, scope: !54) 368!109 = !{!"0x100\00return_val\0056\000", !54, !7, !12} ; [ DW_TAG_auto_variable ] [return_val] [line 56] 369!110 = !MDLocation(line: 56, scope: !54) 370!111 = !MDLocation(line: 56, scope: !112) 371!112 = !{!"0xb\0056\000\001", !1, !54} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 372!113 = !{!"0x100\00a\0058\000", !54, !7, !4} ; [ DW_TAG_auto_variable ] [a] [line 58] 373!114 = !MDLocation(line: 58, scope: !54) 374!115 = !MDLocation(line: 59, scope: !54) 375!116 = !MDLocation(line: 60, scope: !54) 376!117 = !MDLocation(line: 60, scope: !118) 377!118 = !{!"0xb\0060\000\001", !1, !54} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 378!119 = !MDLocation(line: 60, scope: !120) 379!120 = !{!"0xb\0060\000\003", !1, !54} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 380!121 = !MDLocation(line: 60, scope: !122) 381!122 = !{!"0xb\0060\000\002", !1, !54} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 382!123 = !{!"0x101\00this\0016777216\001088", !62, null, !90} ; [ DW_TAG_arg_variable ] [this] [line 0] 383!124 = !MDLocation(line: 0, scope: !62) 384!125 = !MDLocation(line: 41, scope: !62) 385!126 = !{!"0x101\00this\0016777216\001088", !61, null, !68} ; [ DW_TAG_arg_variable ] [this] [line 0] 386!127 = !MDLocation(line: 0, scope: !61) 387!128 = !MDLocation(line: 8, scope: !61) 388!129 = !MDLocation(line: 8, scope: !130) 389!130 = !{!"0xb\008\000\001", !1, !61} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 390!131 = !MDLocation(line: 8, scope: !132) 391!132 = !{!"0xb\008\000\002", !1, !61} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 392!133 = !MDLocation(line: 8, scope: !134) 393!134 = !{!"0xb\008\000\003", !1, !61} ; [ DW_TAG_lexical_block ] [/usr/local/google/home/echristo/tmp/sret.cpp] 394