1 ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s 2 ; RUN: verify-uselistorder %s 3 4 ; Force a specific numbering. 5 ; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} 6 !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} 7 ; CHECK: !llvm.dbg.cu = !{!8, !9, !10} 8 !llvm.dbg.cu = !{!8, !9, !10} 9 10 !0 = distinct !{} 11 !1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") 12 !2 = distinct !{} 13 !3 = distinct !{} 14 !4 = distinct !{} 15 !5 = distinct !{} 16 !6 = distinct !{} 17 !7 = distinct !{} 18 19 ; 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) 20 !8 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", 21 isOptimized: true, flags: "-O2", runtimeVersion: 2, 22 splitDebugFilename: "abc.debug", 23 emissionKind: FullDebug, 24 enums: !2, retainedTypes: !3, 25 globals: !5, imports: !6, macros: !7, dwoId: 42) 26 27 ; CHECK: !9 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug) 28 !9 = distinct !DICompileUnit(language: 12, file: !1, producer: "", 29 isOptimized: false, flags: "", runtimeVersion: 0, 30 splitDebugFilename: "", emissionKind: NoDebug) 31 32 ; CHECK: !10 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: LineTablesOnly) 33 !10 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", 34 isOptimized: true, flags: "-O2", runtimeVersion: 2, 35 splitDebugFilename: "abc.debug", 36 emissionKind: LineTablesOnly) 37 38 !llvm.module.flags = !{!11} 39 !11 = !{i32 2, !"Debug Info Version", i32 3} 40