blob: c1683e2d630b42939e5cee8c314bffa3f836e2b7 [file] [log] [blame]
Duncan P. N. Exon Smith37742c32015-02-13 01:25:10 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
Adrian Prantl8d4b7e72016-03-28 21:06:26 +00004; Force a specific numbering.
Amjad Aboud7db39802015-12-10 12:56:35 +00005; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
6!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
Adrian Prantl39bb84a2016-03-31 23:56:58 +00007; CHECK: !llvm.dbg.cu = !{!8, !9, !10}
8!llvm.dbg.cu = !{!8, !9, !10}
Duncan P. N. Exon Smith37742c32015-02-13 01:25:10 +00009
Duncan P. N. Exon Smith99f12692015-02-20 20:35:17 +000010!0 = distinct !{}
Duncan P. N. Exon Smithe56023a2015-04-29 16:38:44 +000011!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
Duncan P. N. Exon Smith37742c32015-02-13 01:25:10 +000012!2 = distinct !{}
13!3 = distinct !{}
14!4 = distinct !{}
15!5 = distinct !{}
16!6 = distinct !{}
Amjad Aboud7db39802015-12-10 12:56:35 +000017!7 = distinct !{}
Duncan P. N. Exon Smith37742c32015-02-13 01:25:10 +000018
Adrian Prantl4eeaa0d2016-04-15 15:57:41 +000019; CHECK: !8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: FullDebug, enums: !2, retainedTypes: !3, globals: !5, imports: !6, macros: !7, dwoId: 42)
Amjad Aboud7db39802015-12-10 12:56:35 +000020!8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang",
Duncan P. N. Exon Smithc61bc482015-08-03 17:26:41 +000021 isOptimized: true, flags: "-O2", runtimeVersion: 2,
Adrian Prantl39bb84a2016-03-31 23:56:58 +000022 splitDebugFilename: "abc.debug",
23 emissionKind: FullDebug,
Adrian Prantl4eeaa0d2016-04-15 15:57:41 +000024 enums: !2, retainedTypes: !3,
David Blaikiebf471b72016-08-24 18:29:49 +000025 globals: !5, imports: !6, macros: !7, dwoId: 42, splitDebugInlining: true)
Duncan P. N. Exon Smith37742c32015-02-13 01:25:10 +000026
Adrian Prantl39bb84a2016-03-31 23:56:58 +000027; CHECK: !9 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug)
Amjad Aboud7db39802015-12-10 12:56:35 +000028!9 = distinct !DICompileUnit(language: 12, file: !1, producer: "",
Duncan P. N. Exon Smithc61bc482015-08-03 17:26:41 +000029 isOptimized: false, flags: "", runtimeVersion: 0,
Adrian Prantl39bb84a2016-03-31 23:56:58 +000030 splitDebugFilename: "", emissionKind: NoDebug)
31
David Blaikiebf471b72016-08-24 18:29:49 +000032; CHECK: !10 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: LineTablesOnly, splitDebugInlining: false)
Adrian Prantl39bb84a2016-03-31 23:56:58 +000033!10 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang",
34 isOptimized: true, flags: "-O2", runtimeVersion: 2,
35 splitDebugFilename: "abc.debug",
David Blaikiebf471b72016-08-24 18:29:49 +000036 emissionKind: LineTablesOnly, splitDebugInlining: false)
Adrian Prantl39bb84a2016-03-31 23:56:58 +000037
38!llvm.module.flags = !{!11}
39!11 = !{i32 2, !"Debug Info Version", i32 3}