[llvm] [llvm-debuginfo-analyzer] Add support for DWARF `DW_AT_byte_size` (PR #139110)
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 06:09:26 PDT 2025
================
@@ -1011,9 +1011,13 @@ void LVScope::printExtra(raw_ostream &OS, bool Full) const {
// Do not print any type or name for a lexical block.
if (!getIsBlock()) {
OS << " " << formattedName(getName());
- if (!getIsAggregate())
+ if (getIsAggregate()) {
----------------
CarlosAlbertoEnciso wrote:
Looking at the DWARF specifications, `DW_AT_byte_size` is valid for arrays, enumeration type, etc. The DWARF reader does not have any restriction while parsing the tag.
I think we should remove the `if (getIsAggregate())` condition. Just check if the value is not zero.
https://github.com/llvm/llvm-project/pull/139110
More information about the llvm-commits
mailing list