[PATCH] D85018: [WIP][POC][DebugInfo] Support for DW_AT_start_scope for scoped variables

Sourabh Singh Tomar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 09:49:34 PDT 2020


SouraVX added a comment.

Sorry for the confusion/churn. This is the resultant DWARF(for the variable of interest)  for this test case.

  0x0000007a:       DW_TAG_variable
                      **DW_AT_location      (0x00000000:
                         [0x0000000000401178, 0x00000000004011c1): DW_OP_breg6 RBP-24)** // This is what causing increased in location list(even at "-O0 -g")
                      DW_AT_name  ("Local")
                      DW_AT_decl_file     ("/Scope.c")
                      DW_AT_decl_line     (7)
                      DW_AT_type  (0x0000008f "int")
                      DW_AT_start_scope   (0x00000017)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85018



More information about the llvm-commits mailing list