[PATCH] D72023: Change dbg-*-tag-offset tests to use llvm-dwarfdump.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 14:09:58 PST 2020


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


================
Comment at: llvm/test/CodeGen/AArch64/dbg-declare-tag-offset.ll:6-13
+; CHECK-NOT:    DW_TAG_variable
+; CHECK:        DW_AT_LLVM_tag_offset (0x01)
+; CHECK-NEXT:   DW_AT_name    ("a")
 
-; CHECK: .byte 1 // DW_AT_LLVM_tag_offset
-; CHECK: .word .Linfo_string4 // DW_AT_name
-
-; CHECK: .byte 2 // DW_AT_LLVM_tag_offset
-; CHECK: .word .Linfo_string6 // DW_AT_name
+; CHECK:      DW_TAG_variable
+; CHECK-NOT:    DW_TAG_variable
+; CHECK:        DW_AT_LLVM_tag_offset (0x02)
----------------
Oh, I'd probably use "CHECK-NOT: DW_TAG", FWIW. (because you're interested in these tags being attached to a DW_TAG_variable, not some other tag)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72023/new/

https://reviews.llvm.org/D72023





More information about the llvm-commits mailing list