[llvm] [llvm-debuginfo-analyzer] Support DW_AT_byte_size and DW_TAG_module (PR #137228)
Javier Lopez-Gomez via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 09:16:07 PDT 2025
================
@@ -826,6 +834,23 @@ class LVScopeTemplatePack final : public LVScope {
void printExtra(raw_ostream &OS, bool Full = true) const override;
};
+// Class to represent a DWARF Module.
+class LVScopeModule final : public LVScope {
+public:
+ LVScopeModule() : LVScope() {
+ setIsModule();
+ setIsLexicalBlock();
+ }
+ LVScopeModule(const LVScopeModule &) = delete;
+ LVScopeModule &operator=(const LVScopeModule &) = delete;
+ ~LVScopeModule() = default;
+
+ // Returns true if current scope is logically equal to the given 'Scope'.
+ bool equals(const LVScope *Scope) const override;
+
+ void printExtra(raw_ostream &OS, bool Full = true) const override;
+};
----------------
jalopezg-git wrote:
I believe not (besides the attributes that are already parsed in https://github.com/llvm/llvm-project/blob/main/llvm/lib/DebugInfo/LogicalView/Readers/LVDWARFReader.cpp#L245). IMHO, not very interesting ATM to collect LLVM-specific DWARF attributes.
https://github.com/llvm/llvm-project/pull/137228
More information about the llvm-commits
mailing list