[PATCH] D79306: llvm rejects DWARF operator DW_OP_push_object_address.

Alok Kumar Sharma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 03:12:02 PDT 2020


alok marked 4 inline comments as done.
alok added inline comments.


================
Comment at: llvm/test/DebugInfo/dwarfdump-pushobjectaddress.ll:1
+; This test checks whether DWARF operator DW_OP_push_object_address
+; is accepted and processed.
----------------
djtodoro wrote:
> djtodoro wrote:
> > alok wrote:
> > > alok wrote:
> > > > djtodoro wrote:
> > > > > The recommendation is (I've learned this recently) using double `;` for high-level comments.
> > > > Thanks for your comment.  sorry I did not understand it clearly. Do you mean double semi colon ";;" in place of ";"?
> > > Thanks for your comment, I shall update my patch.
> > Yes. Thanks.
> Sorry for the confusion, but this should be:
> 
>   ;; This test checks whether DWARF operator DW_OP_push_object_address
>   ;; is accepted and processed.
> 
> 
Thanks a lot for clarifying this. I shall update.


================
Comment at: llvm/test/DebugInfo/dwarfdump-pushobjectaddress.ll:22
+; step 2: insert DW_OP_push_object_address in dbg.declare instruction
+; This is meaningless test case focused to test DW_OP_push_object_address.
+
----------------
djtodoro wrote:
>   ;; Below is the original test case this IR is generated from
>   ;;---------------------------
>   ;;int main() {
>   ;;int var;
>   ;;return var;
>   ;;}
>   ;;---------------------------
>   ;; step 1: generate IR using -g -O0 -S -emit-llvm
>   ;; step 2: insert DW_OP_push_object_address in dbg.declare instruction
>   ;; This is meaningless test case focused to test DW_OP_push_object_address.
Thanks for clarification. I shall update this.


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

https://reviews.llvm.org/D79306





More information about the llvm-commits mailing list