Peter Collingbourne | 5420de3 | 2016-09-13 01:12:59 +0000 | [diff] [blame] | 1 | ; RUN: llvm-dis -o - %s.bc | FileCheck %s |
| 2 | |
Adrian Prantl | 7b500b4 | 2016-12-20 02:09:43 +0000 | [diff] [blame] | 3 | !llvm.dbg.cu = !{!0} |
| 4 | !llvm.module.flags = !{!7, !8} |
Peter Collingbourne | 5420de3 | 2016-09-13 01:12:59 +0000 | [diff] [blame] | 5 | |
Adrian Prantl | 7b500b4 | 2016-12-20 02:09:43 +0000 | [diff] [blame] | 6 | ; CHECK: !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.8.1", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !3) |
| 7 | !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.8.1", isOptimized: true, runtimeVersion: 0, emissionKind: 1, enums: !2, globals: !3) |
| 8 | !1 = !DIFile(filename: "g.c", directory: "/") |
| 9 | !2 = !{} |
| 10 | ; CHECK: !3 = !{!4} |
| 11 | !3 = !{!4} |
Reid Kleckner | a5b2af0 | 2017-08-23 20:31:27 +0000 | [diff] [blame] | 12 | ; CHECK: !4 = {{.*}}!DIGlobalVariableExpression(var: !5, expr: !DIExpression(DW_OP_constu, 42, DW_OP_stack_value)) |
Adrian Prantl | 7b500b4 | 2016-12-20 02:09:43 +0000 | [diff] [blame] | 13 | ; CHECK: !5 = !DIGlobalVariable(name: "c", scope: !0, file: !1, line: 1, type: !6, isLocal: false, isDefinition: true) |
Adrian Prantl | 7b500b4 | 2016-12-20 02:09:43 +0000 | [diff] [blame] | 14 | !4 = !DIGlobalVariable(name: "c", scope: !0, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, variable: i32 42) |
| 15 | !5 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !6) |
| 16 | !6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
| 17 | !7 = !{i32 2, !"Dwarf Version", i32 2} |
| 18 | !8 = !{i32 2, !"Debug Info Version", i32 3} |
Peter Collingbourne | 5420de3 | 2016-09-13 01:12:59 +0000 | [diff] [blame] | 19 | |