Defining a new API for debug options that doesn't rely on static global cl::opts.
[oota-llvm.git] / test / DebugInfo / X86 / fission-hash.ll
1 ; RUN: llc -split-dwarf=Enable -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t
2 ; RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s
3
4 ; The source is an empty file.
5
6 ; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x0c1e629c9e5ada4f)
7 ; CHECK: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x0c1e629c9e5ada4f)
8
9 !llvm.dbg.cu = !{!0}
10 !llvm.module.flags = !{!3, !4}
11
12 !0 = metadata !{metadata !"0x11\0012\00clang version 3.4 (trunk 188230) (llvm/trunk 188234)\000\00\000\00foo.dwo\000", metadata !1, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2} ; [ DW_TAG_compile_unit ] [/usr/local/google/home/echristo/tmp/foo.c] [DW_LANG_C99]
13 !1 = metadata !{metadata !"foo.c", metadata !"/usr/local/google/home/echristo/tmp"}
14 !2 = metadata !{}
15 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 3}
16 !4 = metadata !{i32 1, metadata !"Debug Info Version", i32 2}