[PATCH] D41696: [DebugInfo] Emit DWARF reference for DIVariable 'count' in DISubrange
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 05:41:55 PST 2018
sdesmalen marked 2 inline comments as done.
sdesmalen added inline comments.
================
Comment at: test/DebugInfo/Generic/disubrange.ll:5
+; CHECK-DAG: DW_AT_count [DW_FORM_ref4] (cu + {{.*}} => {[[NODE:[0-9a-zA-Zx]+]]})
+; CHECK-DAG: [[NODE]]: DW_TAG_variable [4]
+
----------------
aprantl wrote:
> For documentation, could you CHECK the TAG_variable first and also CHECK for its name?
I've done this by running llvm-dwarfdump once with `-name=vla_expr` to get the debug entry, and then a second llvm-dwarfdump cross references this entry with the value used for the count field. (this was needed because the DW_AT_name is on the next line after DW_TAG_variable).
Repository:
rL LLVM
https://reviews.llvm.org/D41696
More information about the llvm-commits
mailing list