1; RUN: sed -e 's/nameTableKind: Default/nameTableKind: GNU/' %s | llc -mtriple=x86_64-pc-linux-gnu -filetype=obj | llvm-dwarfdump -v - | FileCheck --check-prefix=GPUB %s 2; RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck --check-prefix=NONE %s 3 4; Generated from: 5; void f1(); 6; inline __attribute__((always_inline)) void f2() { 7; f1(); 8; } 9; void f3() { 10; f2(); 11; } 12; $ clang++ -gmlt %s -emit-llvm -S 13 14; GPUB: Compile Unit 15; GPUB: DW_AT_GNU_pubnames 16 17; GPUB: .debug_gnu_pubnames contents: 18; GPUB-NEXT: unit_offset = 0x00000000 19; GPUB-NEXT: Name 20; GPUB-NEXT: "f2" 21; GPUB-NEXT: "f3" 22 23; GPUB: .debug_gnu_pubtypes contents: 24; GPUB-NEXT: length = 0x0000000e, format = DWARF32, version = 0x0002, unit_offset = 0x00000000 25; GPUB-NEXT: Name 26 27; NONE-NOT: .debug_pubnames contents: 28; NONE-NOT: .debug_pubtypes contents: 29; NONE-NOT: .debug_gnu_pubnames contents: 30; NONE-NOT: .debug_gnu_pubtypes contents: 31 32 33; Function Attrs: noinline uwtable 34define void @_Z2f3v() #0 !dbg !7 { 35entry: 36 call void @_Z2f1v(), !dbg !9 37 ret void, !dbg !12 38} 39 40declare void @_Z2f1v() #1 41 42attributes #0 = { noinline uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } 43attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } 44 45!llvm.dbg.cu = !{!0} 46!llvm.module.flags = !{!3, !4, !5} 47!llvm.ident = !{!6} 48 49!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 5.0.0 (trunk 303768) (llvm/trunk 303774)", isOptimized: false, runtimeVersion: 0, emissionKind: LineTablesOnly, enums: !2, nameTableKind: Default) 50!1 = !DIFile(filename: "gnu-public-names-gmlt.cpp", directory: "/usr/local/google/home/blaikie/dev/scratch") 51!2 = !{} 52!3 = !{i32 2, !"Dwarf Version", i32 4} 53!4 = !{i32 2, !"Debug Info Version", i32 3} 54!5 = !{i32 1, !"wchar_size", i32 4} 55!6 = !{!"clang version 5.0.0 (trunk 303768) (llvm/trunk 303774)"} 56!7 = distinct !DISubprogram(name: "f3", scope: !1, file: !1, line: 5, type: !8, isLocal: false, isDefinition: true, scopeLine: 5, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2) 57!8 = !DISubroutineType(types: !2) 58!9 = !DILocation(line: 3, column: 3, scope: !10, inlinedAt: !11) 59!10 = distinct !DISubprogram(name: "f2", scope: !1, file: !1, line: 2, type: !8, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2) 60!11 = distinct !DILocation(line: 6, column: 3, scope: !7) 61!12 = !DILocation(line: 7, column: 1, scope: !7) 62