[llvm] [llvm-debuginfo-analyzer] Add support for DWARF `DW_AT_byte_size` (PR #139110)
Javier Lopez-Gomez via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 06:42:28 PDT 2025
================
@@ -239,6 +243,9 @@ class LVElement : public LVObject {
virtual bool isBase() const { return false; }
virtual bool isTemplateParam() const { return false; }
+ uint32_t getStorageSizeInBytes() const {
+ return (getBitSize() + (DWARF_CHAR_BIT - 1)) / DWARF_CHAR_BIT;
----------------
jalopezg-git wrote:
Oh, thanks for the additional review and comment, @OCHyams! I have changed it :+1:.
https://github.com/llvm/llvm-project/pull/139110
More information about the llvm-commits
mailing list