1; ModuleID = 'bar.cpp' 2 3%struct.Base = type { i32, %struct.Base* } 4 5; Function Attrs: nounwind ssp uwtable 6define void @_Z1gi(i32 %a) #0 { 7entry: 8 %a.addr = alloca i32, align 4 9 %t = alloca %struct.Base, align 8 10 store i32 %a, i32* %a.addr, align 4 11 call void @llvm.dbg.declare(metadata i32* %a.addr, metadata !20, metadata !{!"0x102"}), !dbg !21 12 call void @llvm.dbg.declare(metadata %struct.Base* %t, metadata !22, metadata !{!"0x102"}), !dbg !23 13 ret void, !dbg !24 14} 15 16; Function Attrs: nounwind readnone 17declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 18 19; Function Attrs: ssp uwtable 20define i32 @main() #2 { 21entry: 22 %retval = alloca i32, align 4 23 store i32 0, i32* %retval 24 call void @_Z1fi(i32 0), !dbg !25 25 call void @_Z1gi(i32 1), !dbg !26 26 ret i32 0, !dbg !27 27} 28 29declare void @_Z1fi(i32) #3 30 31attributes #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" } 32attributes #1 = { nounwind readnone } 33attributes #2 = { 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" } 34attributes #3 = { "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" } 35 36!llvm.dbg.cu = !{!0} 37!llvm.module.flags = !{!19, !28} 38 39!0 = !{!"0x11\004\00clang version 3.4 (http://llvm.org/git/clang.git 8a3f9e46cb988d2c664395b21910091e3730ae82) (http://llvm.org/git/llvm.git 4699e9549358bc77824a59114548eecc3f7c523c)\000\00\000\00\000", !1, !2, !3, !11, !2, !2} ; [ DW_TAG_compile_unit ] [bar.cpp] [DW_LANG_C_plus_plus] 40!1 = !{!"bar.cpp", !"."} 41!2 = !{} 42!3 = !{!4} 43!4 = !{!"0x13\00Base\001\00128\0064\000\000\000", !5, null, null, !6, null, null, !"_ZTS4Base"} ; [ DW_TAG_structure_type ] [Base] [line 1, size 128, align 64, offset 0] [def] [from ] 44!5 = !{!"./a.hpp", !"."} 45!6 = !{!7, !9} 46!7 = !{!"0xd\00a\002\0032\0032\000\000", !5, !"_ZTS4Base", !8} ; [ DW_TAG_member ] [a] [line 2, size 32, align 32, offset 0] [from int] 47!8 = !{!"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] 48!9 = !{!"0xd\00b\003\0064\0064\0064\000", !5, !"_ZTS4Base", !10} ; [ DW_TAG_member ] [b] [line 3, size 64, align 64, offset 64] [from ] 49!10 = !{!"0xf\00\000\0064\0064\000\000", null, null, !"_ZTS4Base"} ; [ DW_TAG_pointer_type ] 50!11 = !{!12, !16} 51!12 = !{!"0x2e\00g\00g\00_Z1gi\004\000\001\000\006\00256\000\004", !1, !13, !14, null, void (i32)* @_Z1gi, null, null, !2} ; [ DW_TAG_subprogram ] [line 4] [def] [g] 52!13 = !{!"0x29", !1} ; [ DW_TAG_file_type ] [bar.cpp] 53!14 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !15, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 54!15 = !{null, !8} 55!16 = !{!"0x2e\00main\00main\00\007\000\001\000\006\00256\000\007", !1, !13, !17, null, i32 ()* @main, null, null, !2} ; [ DW_TAG_subprogram ] [line 7] [def] [main] 56!17 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !18, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 57!18 = !{!8} 58!19 = !{i32 2, !"Dwarf Version", i32 2} 59!20 = !{!"0x101\00a\0016777220\000", !12, !13, !8} ; [ DW_TAG_arg_variable ] [a] [line 4] 60!21 = !MDLocation(line: 4, scope: !12) 61!22 = !{!"0x100\00t\005\000", !12, !13, !4} ; [ DW_TAG_auto_variable ] [t] [line 5] 62!23 = !MDLocation(line: 5, scope: !12) 63!24 = !MDLocation(line: 6, scope: !12) 64!25 = !MDLocation(line: 8, scope: !16) 65!26 = !MDLocation(line: 9, scope: !16) 66!27 = !MDLocation(line: 10, scope: !16) 67!28 = !{i32 1, !"Debug Info Version", i32 2} 68