[Lldb-commits] [lldb] r252560 - Code cleanup
Enrico Granata via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 9 16:21:10 PST 2015
Author: enrico
Date: Mon Nov 9 18:21:10 2015
New Revision: 252560
URL: http://llvm.org/viewvc/llvm-project?rev=252560&view=rev
Log:
Code cleanup
Modified:
lldb/trunk/include/lldb/Core/ValueObject.h
lldb/trunk/include/lldb/Core/ValueObjectDynamicValue.h
lldb/trunk/include/lldb/Core/ValueObjectVariable.h
Modified: lldb/trunk/include/lldb/Core/ValueObject.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/ValueObject.h?rev=252560&r1=252559&r2=252560&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/ValueObject.h (original)
+++ lldb/trunk/include/lldb/Core/ValueObject.h Mon Nov 9 18:21:10 2015
@@ -1004,6 +1004,12 @@ public:
virtual bool
MightHaveChildren();
+ virtual lldb::VariableSP
+ GetVariable ()
+ {
+ return nullptr;
+ }
+
virtual bool
IsRuntimeSupportValue ();
Modified: lldb/trunk/include/lldb/Core/ValueObjectDynamicValue.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/ValueObjectDynamicValue.h?rev=252560&r1=252559&r2=252560&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/ValueObjectDynamicValue.h (original)
+++ lldb/trunk/include/lldb/Core/ValueObjectDynamicValue.h Mon Nov 9 18:21:10 2015
@@ -56,6 +56,14 @@ public:
}
bool
+ IsBaseClass () override
+ {
+ if (m_parent)
+ return m_parent->IsBaseClass();
+ return false;
+ }
+
+ bool
GetIsConstant() const override
{
return false;
@@ -98,6 +106,12 @@ public:
TypeImpl
GetTypeImpl() override;
+ lldb::VariableSP
+ GetVariable () override
+ {
+ return m_parent ? m_parent->GetVariable() : nullptr;
+ }
+
lldb::LanguageType
GetPreferredDisplayLanguage() override;
Modified: lldb/trunk/include/lldb/Core/ValueObjectVariable.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/ValueObjectVariable.h?rev=252560&r1=252559&r2=252560&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/ValueObjectVariable.h (original)
+++ lldb/trunk/include/lldb/Core/ValueObjectVariable.h Mon Nov 9 18:21:10 2015
@@ -69,6 +69,12 @@ public:
bool
SetData(DataExtractor &data, Error &error) override;
+ virtual lldb::VariableSP
+ GetVariable () override
+ {
+ return m_variable_sp;
+ }
+
protected:
bool
UpdateValue() override;
@@ -78,7 +84,7 @@ protected:
lldb::VariableSP m_variable_sp; ///< The variable that this value object is based upon
Value m_resolved_value; ///< The value that DWARFExpression resolves this variable to before we patch it up
-
+
private:
ValueObjectVariable (ExecutionContextScope *exe_scope, const lldb::VariableSP &var_sp);
//------------------------------------------------------------------
More information about the lldb-commits
mailing list