[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
Wed May 14 23:28:44 PDT 2025


================
@@ -292,7 +292,11 @@ void LVType::print(raw_ostream &OS, bool Full) const {
 }
 
 void LVType::printExtra(raw_ostream &OS, bool Full) const {
-  OS << formattedKind(kind()) << " " << formattedName(getName()) << "\n";
+  OS << formattedKind(kind()) << " " << formattedName(getName());
+  if (uint32_t Size = getStorageSizeInBytes();
+      options().getAttributeSize() && Size)
----------------
CarlosAlbertoEnciso wrote:

May be rearrange the conditions to call `getStorageSizeInBytes()` only when `options().getAttributeSize()` is true `(--attribute=size)`.

https://github.com/llvm/llvm-project/pull/139110


More information about the llvm-commits mailing list