Peter Collingbourne | b52e236 | 2017-09-12 21:50:41 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s | FileCheck %s |
| 2 | |
Peter Collingbourne | 8b30b96 | 2017-09-12 23:40:19 +0000 | [diff] [blame] | 3 | target triple = "x86_64-unknown-linux-gnu" |
| 4 | |
Peter Collingbourne | b52e236 | 2017-09-12 21:50:41 +0000 | [diff] [blame] | 5 | !llvm.dbg.cu = !{!4, !11} |
| 6 | !llvm.module.flags = !{!7} |
| 7 | |
| 8 | ; CHECK: .section .debug_pubnames |
| 9 | ; CHECK: .asciz "a" |
| 10 | |
| 11 | !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) |
| 12 | !1 = !DIGlobalVariable(name: "a", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true) |
| 13 | !2 = !DIFile(filename: "g.c", directory: "/tmp") |
| 14 | !3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
| 15 | !4 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !6) |
| 16 | !5 = !{} |
| 17 | !6 = !{!0} |
| 18 | !7 = !{i32 1, !"Debug Info Version", i32 3} |
| 19 | |
| 20 | ; CHECK: .section .debug_gnu_pubnames |
| 21 | ; CHECK: .asciz "b" |
| 22 | |
| 23 | !8 = !DIGlobalVariableExpression(var: !9, expr: !DIExpression()) |
| 24 | !9 = !DIGlobalVariable(name: "b", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true) |
| 25 | !10 = !{!8} |
David Blaikie | 66cf14d | 2018-08-16 21:29:55 +0000 | [diff] [blame] | 26 | !11 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !10, nameTableKind: GNU) |