1@var = thread_local global i32 0, align 4, !dbg !0 2 3; Function Attrs: norecurse nounwind readnone uwtable 4define void @_Z3funv() local_unnamed_addr #0 !dbg !11 { 5 ret void, !dbg !14 6} 7 8; Function Attrs: norecurse uwtable 9define weak_odr hidden ptr @_ZTW3var() local_unnamed_addr #1 { 10 ret ptr @var 11} 12 13attributes #0 = { norecurse nounwind readnone uwtable } 14attributes #1 = { norecurse uwtable } 15 16!llvm.dbg.cu = !{!2} 17!llvm.module.flags = !{!7, !8, !9} 18!llvm.ident = !{!10} 19 20!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 21!1 = distinct !DIGlobalVariable(name: "var", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true) 22!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 7.0.0 (trunk 322268) (llvm/trunk 322267)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, nameTableKind: Apple) 23!3 = !DIFile(filename: "debugger-tune.cpp", directory: "/tmp") 24!4 = !{} 25!5 = !{!0} 26!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 27!7 = !{i32 2, !"Dwarf Version", i32 4} 28!8 = !{i32 2, !"Debug Info Version", i32 3} 29!9 = !{i32 1, !"wchar_size", i32 4} 30!10 = !{!"clang version 7.0.0 (trunk 322268) (llvm/trunk 322267)"} 31!11 = distinct !DISubprogram(name: "fun", linkageName: "_Z3funv", scope: !3, file: !3, line: 2, type: !12, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, unit: !2, retainedNodes: !4) 32!12 = !DISubroutineType(types: !13) 33!13 = !{null} 34!14 = !DILocation(line: 2, column: 13, scope: !11) 35 36