Eric Christopher | 1cf3338 | 2012-06-01 00:22:32 +0000 | [diff] [blame] | 1 | ; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj |
Eli Bendersky | e6abe83 | 2013-01-25 21:44:53 +0000 | [diff] [blame] | 2 | ; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s |
Eric Christopher | 1cf3338 | 2012-06-01 00:22:32 +0000 | [diff] [blame] | 3 | |
| 4 | @e = global i16 0, align 2 |
| 5 | |
| 6 | !llvm.dbg.cu = !{!0} |
Manman Ren | 409558f | 2013-11-22 21:49:45 +0000 | [diff] [blame] | 7 | !llvm.module.flags = !{!9} |
Eric Christopher | 1cf3338 | 2012-06-01 00:22:32 +0000 | [diff] [blame] | 8 | |
Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 9 | !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.2 (trunk 165274) (llvm/trunk 165272)", isOptimized: false, emissionKind: FullDebug, file: !8, enums: !1, retainedTypes: !1, globals: !3, imports: !1) |
Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 10 | !1 = !{} |
| 11 | !3 = !{!5} |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 12 | !5 = !DIGlobalVariable(name: "e", line: 2, isLocal: false, isDefinition: true, scope: null, file: !6, type: !7, variable: i16* @e) |
| 13 | !6 = !DIFile(filename: "foo.cpp", directory: "/tmp") |
| 14 | !7 = !DICompositeType(tag: DW_TAG_enumeration_type, name: "E", line: 1, size: 16, align: 16, flags: DIFlagFwdDecl, file: !8) |
| 15 | !8 = !DIFile(filename: "foo.cpp", directory: "/tmp") |
Eric Christopher | 1cf3338 | 2012-06-01 00:22:32 +0000 | [diff] [blame] | 16 | |
| 17 | ; CHECK: DW_TAG_enumeration_type |
| 18 | ; CHECK-NEXT: DW_AT_name |
| 19 | ; CHECK-NEXT: DW_AT_byte_size |
| 20 | ; CHECK-NEXT: DW_AT_declaration |
Duncan P. N. Exon Smith | e274180 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 21 | !9 = !{i32 1, !"Debug Info Version", i32 3} |