blob: f787039885b96acc74bca4c33394182ab8c18374 [file] [log] [blame]
David Blaikie9acebfd2014-02-14 19:51:35 +00001; REQUIRES: object-emission
2
David Blaikiefb6058a2014-03-11 22:46:12 +00003; RUN: %llc_dwarf < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s
David Blaikie62dd7df2014-03-26 03:05:10 +00004; RUN: %llc_dwarf -split-dwarf=Enable < %s -filetype=obj | llvm-dwarfdump - | FileCheck --check-prefix=FISSION %s
David Blaikie9acebfd2014-02-14 19:51:35 +00005
David Blaikie9acebfd2014-02-14 19:51:35 +00006; darwin has a workaround for a linker bug so it always emits one line table entry
David Blaikiefb6058a2014-03-11 22:46:12 +00007; XFAIL: darwin
David Blaikie9acebfd2014-02-14 19:51:35 +00008
9; Expect no line table entry since there are no functions and file references in this compile unit
10; CHECK: .debug_line contents:
11; CHECK: Line table prologue:
12; CHECK: total_length: 0x00000019
13; CHECK-NOT: file_names[
14
David Blaikiefe04abb2014-03-11 23:35:03 +000015; CHECK: .debug_pubnames contents:
David Blaikiece2f1cb2014-03-11 23:35:06 +000016; CHECK-NOT: Offset
David Blaikiefe04abb2014-03-11 23:35:03 +000017
18; CHECK: .debug_pubtypes contents:
David Blaikiece2f1cb2014-03-11 23:35:06 +000019; CHECK-NOT: Offset
David Blaikiefe04abb2014-03-11 23:35:03 +000020
David Blaikie3ffe4dd2014-03-25 05:34:24 +000021; Don't emit DW_AT_addr_base when there are no addresses.
22; FISSION-NOT: DW_AT_GNU_addr_base [DW_FORM_sec_offset]
23
David Blaikie9acebfd2014-02-14 19:51:35 +000024!llvm.dbg.cu = !{!0}
25!llvm.module.flags = !{!5}
26
Duncan P. N. Exon Smith55ca9642015-08-03 17:26:41 +000027!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.1 (trunk 143523)", isOptimized: true, emissionKind: 0, file: !4, enums: !2, retainedTypes: !2, subprograms: !2, globals: !2)
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000028!2 = !{}
Duncan P. N. Exon Smitha9308c42015-04-29 16:38:44 +000029!3 = !DIFile(filename: "empty.c", directory: "/home/nlewycky")
30!4 = !DIFile(filename: "empty.c", directory: "/home/nlewycky")
Duncan P. N. Exon Smithe2741802015-03-03 17:24:31 +000031!5 = !{i32 1, !"Debug Info Version", i32 3}