[Lldb-commits] [lldb] 7578672 - [lldb] Override GetVariable in ValueObjectSynthetic (NFC)

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Wed May 31 08:19:44 PDT 2023


Author: Dave Lee
Date: 2023-05-31T08:19:36-07:00
New Revision: 7578672c96e18feb5982192e595459b2a65867cf

URL: https://github.com/llvm/llvm-project/commit/7578672c96e18feb5982192e595459b2a65867cf
DIFF: https://github.com/llvm/llvm-project/commit/7578672c96e18feb5982192e595459b2a65867cf.diff

LOG: [lldb] Override GetVariable in ValueObjectSynthetic (NFC)

Make `GetVariable` a passthrough function the the underlying value object in `ValueObjectSynthetic`.

Differential Revision: https://reviews.llvm.org/D151384

Added: 
    

Modified: 
    lldb/include/lldb/Core/ValueObjectSyntheticFilter.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h
index da54ef156daf..a65e7eb1b808 100644
--- a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h
+++ b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h
@@ -82,6 +82,10 @@ class ValueObjectSynthetic : public ValueObject {
                                   : lldb::eNoDynamicValues);
   }
 
+  lldb::VariableSP GetVariable() override {
+    return m_parent != nullptr ? m_parent->GetVariable() : nullptr;
+  }
+
   ValueObject *GetParent() override {
     return ((m_parent != nullptr) ? m_parent->GetParent() : nullptr);
   }


        


More information about the lldb-commits mailing list