dilocalvariable.ll 1.3 KB

1234567891011121314151617181920212223242526
  1. ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
  2. ; RUN: verify-uselistorder %s
  3. @foo = global i32 0
  4. ; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
  5. !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
  6. !0 = distinct !DISubprogram()
  7. !1 = distinct !{}
  8. !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
  9. !3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
  10. !4 = !DILocation(scope: !0)
  11. ; CHECK: !5 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "foo", arg: 3, scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial)
  12. ; CHECK: !6 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "foo", scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial)
  13. !5 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "foo", arg: 3,
  14. scope: !0, file: !2, line: 7, type: !3,
  15. flags: DIFlagArtificial)
  16. !6 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "foo", scope: !0,
  17. file: !2, line: 7, type: !3, flags: DIFlagArtificial)
  18. ; CHECK: !7 = !DILocalVariable(tag: DW_TAG_arg_variable, arg: 0, scope: !0)
  19. ; CHECK: !8 = !DILocalVariable(tag: DW_TAG_auto_variable, scope: !0)
  20. !7 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !0)
  21. !8 = !DILocalVariable(tag: DW_TAG_auto_variable, scope: !0)