2015-02-13 09:46:02 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
|
|
|
|
; RUN: verify-uselistorder %s
|
|
|
|
|
2016-04-15 23:57:41 +08:00
|
|
|
; CHECK: !named = !{!0, !3, !4, !5, !5}
|
|
|
|
!named = !{!0, !3, !4, !5, !6}
|
2015-02-13 09:46:02 +08:00
|
|
|
|
2016-04-04 10:11:34 +08:00
|
|
|
!llvm.module.flags = !{!7}
|
2016-04-15 23:57:41 +08:00
|
|
|
!llvm.dbg.cu = !{!1}
|
2016-04-04 10:11:34 +08:00
|
|
|
|
2015-08-29 04:26:49 +08:00
|
|
|
; CHECK: !0 = distinct !DISubprogram({{.*}})
|
2016-04-15 23:57:41 +08:00
|
|
|
!0 = distinct !DISubprogram(name: "foo", isDefinition: true, unit: !1)
|
2015-02-13 09:46:02 +08:00
|
|
|
|
2016-04-15 23:57:41 +08:00
|
|
|
!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)
|
|
|
|
|
2017-07-19 08:09:54 +08:00
|
|
|
; CHECK-NEXT: !4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, entity: !1, file: !2, line: 7)
|
2016-04-15 23:57:41 +08:00
|
|
|
!4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0,
|
2017-07-19 08:09:54 +08:00
|
|
|
entity: !1, file: !2, line: 7)
|
2015-02-13 09:46:02 +08:00
|
|
|
|
2016-04-15 23:57:41 +08:00
|
|
|
; 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,
|
2015-03-01 07:21:38 +08:00
|
|
|
line: 0)
|
2016-04-04 10:11:34 +08:00
|
|
|
!7 = !{i32 2, !"Debug Info Version", i32 3}
|