blob: 662fd2dae9382ae2189ffe707c7b102e74e45acc [file] [log] [blame]
Adrian Prantl0800f642015-09-22 23:21:00 +00001; RUN: %llc_dwarf %s -filetype=obj -o %t
Adrian Prantl8e66c2e2017-09-11 22:59:45 +00002; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
Adrian Prantldd67a2c2017-07-26 18:48:32 +00003; REQUIRES: default_triple
4;
5; CHECK: DW_TAG_compile_unit
6; CHECK-NOT: dwo_id
7;
8; The skeleton must come second or LLDB may get confused.
Adrian Prantl0800f642015-09-22 23:21:00 +00009; CHECK: DW_TAG_compile_unit
10; CHECK: DW_AT_GNU_dwo_id {{.*}}abcd
Adrian Prantldd67a2c2017-07-26 18:48:32 +000011; CHECK: DW_AT_GNU_dwo_name {{.*}}"my.dwo"
Adrian Prantl0800f642015-09-22 23:21:00 +000012
Adrian Prantldd67a2c2017-07-26 18:48:32 +000013!llvm.dbg.cu = !{!7, !0}
Adrian Prantl0800f642015-09-22 23:21:00 +000014!llvm.module.flags = !{!3, !4}
15
Adrian Prantldd67a2c2017-07-26 18:48:32 +000016!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Clang", isOptimized: false, runtimeVersion: 2, splitDebugFilename: "my.dwo", emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !2, dwoId: 43981)
Adrian Prantl0800f642015-09-22 23:21:00 +000017!1 = !DIFile(filename: "<stdin>", directory: "/")
18!2 = !{}
19!3 = !{i32 2, !"Dwarf Version", i32 4}
20!4 = !{i32 2, !"Debug Info Version", i32 3}
David Blaikie06983052017-05-26 18:52:56 +000021!5 = !{!6}
22!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
Adrian Prantldd67a2c2017-07-26 18:48:32 +000023!7 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Clang", isOptimized: false, runtimeVersion: 2, emissionKind: FullDebug, retainedTypes: !5)