blob: c01f513e2638c656e3fb2abb23f34fc447402c86 [file] [log] [blame]
Eric Christopher1cf33382012-06-01 00:22:32 +00001; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
Eli Benderskye6abe832013-01-25 21:44:53 +00002; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
Eric Christopher1cf33382012-06-01 00:22:32 +00003
4@e = global i16 0, align 2
5
6!llvm.dbg.cu = !{!0}
Manman Ren409558f2013-11-22 21:49:45 +00007!llvm.module.flags = !{!9}
Eric Christopher1cf33382012-06-01 00:22:32 +00008
Adrian Prantl75819ae2016-04-15 15:57:41 +00009!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 Smithbe7ea192014-12-15 19:07:53 +000010!1 = !{}
11!3 = !{!5}
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000012!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 Christopher1cf33382012-06-01 00:22:32 +000016
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 Smithe2741802015-03-03 17:24:31 +000021!9 = !{i32 1, !"Debug Info Version", i32 3}