[PATCH] D53885: MachineModuleInfo: Initialize DbgInfoAvailable depending on debug_cus existing

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 31 10:14:37 PDT 2018


dblaikie accepted this revision.
dblaikie added inline comments.
This revision is now accepted and ready to land.


================
Comment at: test/CodeGen/AArch64/fast-isel-dbg.ll:6-18
+!0 = !DIFile(filename: "fast-isel-dbg.ll", directory: "/")
+!1 = distinct !DICompileUnit(file: !0, language: DW_LANG_C, emissionKind: LineTablesOnly)
+!2 = distinct !DISubprogram(name: "func", unit: !1)
+!3 = !DILocation(line: 17, scope: !2)
+!4 = !DILocation(line: 42, scope: !2)
+!5 = !DILocalVariable(name: "a", arg: 1, scope: !2, file: !0, line: 17, type: !6)
+!6 = !DIBasicType(name: "unsigned int", size: 32, encoding: DW_ATE_unsigned)
----------------
Probably put this metadata after the rest of the code, as it's usually printed (this also has the effect of moving the CHECKs (and the original dbg.declare in question)  up closer to the RUN lines, so it's a bit easier to see how all the testing is related


Repository:
  rL LLVM

https://reviews.llvm.org/D53885





More information about the llvm-commits mailing list