[Lldb-commits] [lldb] [LLDB][NFC] Added the interface DWARFExpression::Delegate to break dependencies and reduce lldb-server size (PR #131645)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 21 03:30:42 PDT 2025


================
@@ -38,7 +39,7 @@ enum DWARFProducer {
   eProducerOther
 };
 
-class DWARFUnit : public UserID {
+class DWARFUnit : public UserID, public DWARFExpression::Delegate {
----------------
labath wrote:

```suggestion
class DWARFUnit : public DWARFExpression::Delegate, public UserID {
```

(because Delegate is a "true" base class (with virtual methods and whatnot) while UserID is a mixin)

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


More information about the lldb-commits mailing list