| @@ -1,30 +1,29 @@ | |||
| ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s | |||
| ; RUN: verify-uselistorder %s | |||
|
|
|||
| ; CHECK: !named = !{!0, !1, !2, !3, !3} | |||
| !named = !{!0, !1, !2, !3, !4} | |||
| ; CHECK: !named = !{!0, !3, !4, !5, !5} | |||
| !named = !{!0, !3, !4, !5, !6} | |||
|
|
|||
| !llvm.module.flags = !{!7} | |||
| !llvm.dbg.cu = !{!5} | |||
| !llvm.dbg.cu = !{!1} | |||
|
|
|||
| ; CHECK: !0 = distinct !DISubprogram({{.*}}) | |||
| ; CHECK-NEXT: !1 = !DICompositeType({{.*}}) | |||
| !0 = distinct !DISubprogram(name: "foo") | |||
| !1 = !DICompositeType(tag: DW_TAG_structure_type, name: "Class", size: 32, align: 32) | |||
| !0 = distinct !DISubprogram(name: "foo", isDefinition: true, unit: !1) | |||
|
|
|||
| ; CHECK-NEXT: !2 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, entity: !1, line: 7) | |||
| !2 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, | |||
| !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | |||
| file: !2, | |||
| isOptimized: true, flags: "-O2", | |||
| splitDebugFilename: "abc.debug", emissionKind: 2) | |||
| !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
| ; CHECK: !3 = !DICompositeType({{.*}}) | |||
| !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "Class", size: 32, align: 32) | |||
|
|
|||
| ; CHECK-NEXT: !4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, entity: !1, line: 7) | |||
| !4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, | |||
| entity: !1, line: 7) | |||
|
|
|||
| ; CHECK-NEXT: !3 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) | |||
| !3 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) | |||
| !4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "", scope: !0, entity: null, | |||
| ; CHECK-NEXT: !5 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) | |||
| !5 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) | |||
| !6 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "", scope: !0, entity: null, | |||
| line: 0) | |||
|
|
|||
| !5 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | |||
| file: !6, | |||
| isOptimized: true, flags: "-O2", | |||
| splitDebugFilename: "abc.debug", emissionKind: 2, | |||
| subprograms: !{!0}) | |||
| !6 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
| !7 = !{i32 2, !"Debug Info Version", i32 3} | |||
| @@ -1,35 +1,34 @@ | |||
| ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s | |||
| ; RUN: verify-uselistorder %s | |||
|
|
|||
| ; CHECK: !named = !{!0, !1, !2, !3, !4, !4, !5, !6, !7, !7} | |||
| !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} | |||
| ; CHECK: !named = !{!0, !1, !2, !3, !4, !4, !5, !6, !7, !7, !8} | |||
| !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10} | |||
|
|
|||
| !llvm.module.flags = !{!11} | |||
| !llvm.dbg.cu = !{!10} | |||
| !llvm.dbg.cu = !{!0} | |||
|
|
|||
| !0 = distinct !{} | |||
| !1 = distinct !DISubprogram(name: "foo", scope: !2) | |||
| !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
| !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | |||
| file: !1, | |||
| isOptimized: true, flags: "-O2", | |||
| splitDebugFilename: "abc.debug", emissionKind: 2) | |||
| !1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
| !2 = distinct !DISubprogram(name: "foo", scope: !1, unit: !0) | |||
|
|
|||
| ; CHECK: !3 = !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35) | |||
| !3 = !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35) | |||
| ; CHECK: !3 = !DILexicalBlock(scope: !2, file: !1, line: 7, column: 35) | |||
| !3 = !DILexicalBlock(scope: !2, file: !1, line: 7, column: 35) | |||
|
|
|||
| ; CHECK: !4 = !DILexicalBlock(scope: !1) | |||
| !4 = !DILexicalBlock(scope: !1) | |||
| !5 = !DILexicalBlock(scope: !1, file: null, line: 0, column: 0) | |||
| ; CHECK: !4 = !DILexicalBlock(scope: !2) | |||
| !4 = !DILexicalBlock(scope: !2) | |||
| !5 = !DILexicalBlock(scope: !2, file: null, line: 0, column: 0) | |||
|
|
|||
| ; CHECK: !5 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 0) | |||
| ; CHECK: !6 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 1) | |||
| !6 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 0) | |||
| !7 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 1) | |||
| ; CHECK: !5 = !DILexicalBlockFile(scope: !3, file: !1, discriminator: 0) | |||
| ; CHECK: !6 = !DILexicalBlockFile(scope: !3, file: !1, discriminator: 1) | |||
| !6 = !DILexicalBlockFile(scope: !3, file: !1, discriminator: 0) | |||
| !7 = !DILexicalBlockFile(scope: !3, file: !1, discriminator: 1) | |||
|
|
|||
| ; CHECK: !7 = !DILexicalBlockFile(scope: !3, discriminator: 7) | |||
| !8 = !DILexicalBlockFile(scope: !3, discriminator: 7) | |||
| !9 = !DILexicalBlockFile(scope: !3, file: null, discriminator: 7) | |||
| !10 = distinct !{} | |||
|
|
|||
| !10 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | |||
| file: !2, | |||
| isOptimized: true, flags: "-O2", | |||
| splitDebugFilename: "abc.debug", emissionKind: 2, | |||
| subprograms: !{!1}) | |||
| !11 = !{i32 2, !"Debug Info Version", i32 3} | |||
| @@ -1,21 +1,20 @@ | |||
| ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s | |||
| ; RUN: verify-uselistorder %s | |||
|
|
|||
| ; CHECK: !named = !{!0, !1} | |||
| !named = !{!0, !1} | |||
| ; CHECK: !named = !{!0, !3} | |||
| !named = !{!0, !3} | |||
|
|
|||
| !llvm.module.flags = !{!4} | |||
| !llvm.dbg.cu = !{!2} | |||
| !llvm.dbg.cu = !{!1} | |||
|
|
|||
| !0 = distinct !DISubprogram() | |||
| !0 = distinct !DISubprogram(unit: !1) | |||
| !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | |||
| file: !2, | |||
| isOptimized: true, flags: "-O2", | |||
| splitDebugFilename: "abc.debug", emissionKind: 2) | |||
| !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
|
|
|||
| ; CHECK: !1 = !DILocalVariable(name: "foo", arg: 65535, scope: !0) | |||
| !1 = !DILocalVariable(name: "foo", arg: 65535, scope: !0) | |||
| ; CHECK: !3 = !DILocalVariable(name: "foo", arg: 65535, scope: !0) | |||
| !3 = !DILocalVariable(name: "foo", arg: 65535, scope: !0) | |||
|
|
|||
| !2 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | |||
| file: !3, | |||
| isOptimized: true, flags: "-O2", | |||
| splitDebugFilename: "abc.debug", emissionKind: 2, | |||
| subprograms: !{!0}) | |||
| !3 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
| !4 = !{i32 2, !"Debug Info Version", i32 3} | |||
| @@ -1,34 +1,35 @@ | |||
| ; RUN: llvm-as < %s | llvm-dis | FileCheck %s | |||
| ; RUN: verify-uselistorder %s | |||
|
|
|||
| ; CHECK: !named = !{!0, !1, !1, !2, !2, !3, !3, !4} | |||
| !named = !{!0, !1, !2, !3, !4, !5, !6, !7} | |||
| ; CHECK: !named = !{!0, !2, !3, !3, !4, !4, !5, !5, !6} | |||
| !named = !{!0, !2, !3, !4, !5, !6, !7, !8, !9} | |||
|
|
|||
| !llvm.module.flags = !{!10} | |||
| !llvm.dbg.cu = !{!8} | |||
| !llvm.dbg.cu = !{!1} | |||
|
|
|||
| ; CHECK: !0 = distinct !DISubprogram( | |||
| !0 = distinct !DISubprogram() | |||
| !0 = distinct !DISubprogram(unit: !1) | |||
| ; CHECK: !1 = distinct !DICompileUnit | |||
| !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | |||
| file: !2, | |||
| isOptimized: true, flags: "-O2", | |||
| splitDebugFilename: "abc.debug", emissionKind: 2) | |||
| ; CHECK: !2 = !DIFile | |||
| !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
|
|
|||
| ; CHECK-NEXT: !1 = !DILocation(line: 3, column: 7, scope: !0) | |||
| !1 = !DILocation(line: 3, column: 7, scope: !0) | |||
| !2 = !DILocation(scope: !0, column: 7, line: 3) | |||
| ; CHECK-NEXT: !3 = !DILocation(line: 3, column: 7, scope: !0) | |||
| !3 = !DILocation(line: 3, column: 7, scope: !0) | |||
| !4 = !DILocation(scope: !0, column: 7, line: 3) | |||
|
|
|||
| ; CHECK-NEXT: !2 = !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !1) | |||
| !3 = !DILocation(scope: !0, inlinedAt: !1, column: 7, line: 3) | |||
| !4 = !DILocation(column: 7, line: 3, scope: !0, inlinedAt: !1) | |||
| ; CHECK-NEXT: !4 = !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !3) | |||
| !5 = !DILocation(scope: !0, inlinedAt: !3, column: 7, line: 3) | |||
| !6 = !DILocation(column: 7, line: 3, scope: !0, inlinedAt: !3) | |||
|
|
|||
| ; CHECK-NEXT: !3 = !DILocation(line: 0, scope: !0) | |||
| !5 = !DILocation(scope: !0) | |||
| !6 = !DILocation(scope: !0, column: 0, line: 0) | |||
| ; CHECK-NEXT: !5 = !DILocation(line: 0, scope: !0) | |||
| !7 = !DILocation(scope: !0) | |||
| !8 = !DILocation(scope: !0, column: 0, line: 0) | |||
|
|
|||
| ; CHECK-NEXT: !4 = !DILocation(line: 4294967295, column: 65535, scope: !0) | |||
| !7 = !DILocation(line: 4294967295, column: 65535, scope: !0) | |||
| ; CHECK-NEXT: !6 = !DILocation(line: 4294967295, column: 65535, scope: !0) | |||
| !9 = !DILocation(line: 4294967295, column: 65535, scope: !0) | |||
|
|
|||
| !8 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | |||
| file: !9, | |||
| isOptimized: true, flags: "-O2", | |||
| splitDebugFilename: "abc.debug", emissionKind: 2, | |||
| subprograms: !{!0}) | |||
| !9 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
| !10 = !{i32 2, !"Debug Info Version", i32 3} | |||
| @@ -1,11 +1,14 @@ | |||
| ; RUN: llvm-dis < %s.bc | FileCheck %s | |||
| ; Check that subprogram definitions are correctly upgraded to 'distinct'. | |||
| ; Bitcode compiled from r245235 of the 3.7 release branch. | |||
| ; Bitcode compiled with llvm-as version 3.7. | |||
|
|
|||
| !named = !{!0} | |||
| !0 = distinct !DICompileUnit(language: 12, file: !1, subprograms: !2) | |||
| define void @f() !dbg !3 { ret void } | |||
|
|
|||
| !llvm.module.flags = !{!4} | |||
| !llvm.dbg.cu = !{!0} | |||
| !0 = distinct !DICompileUnit(language: 12, file: !1, subprograms: !{!3}) | |||
| !1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | |||
| !2 = !{!3} | |||
|
|
|||
| ; CHECK: = distinct !DISubprogram({{.*}}, isDefinition: true | |||
| !3 = !DISubprogram(name: "foo", isDefinition: true) | |||
| !4 = !{i32 2, !"Debug Info Version", i32 3} | |||