diff --git a/lldb/include/lldb/Expression/ExpressionVariable.h b/lldb/include/lldb/Expression/ExpressionVariable.h --- a/lldb/include/lldb/Expression/ExpressionVariable.h +++ b/lldb/include/lldb/Expression/ExpressionVariable.h @@ -29,8 +29,7 @@ LLVMCastKind getKind() const { return m_kind; } - ExpressionVariable(LLVMCastKind kind) : m_flags(0), m_kind(kind) {} - + ExpressionVariable(LLVMCastKind kind); virtual ~ExpressionVariable(); std::optional GetByteSize() { return m_frozen_sp->GetByteSize(); } @@ -208,8 +207,7 @@ LLVMCastKind getKind() const { return m_kind; } - PersistentExpressionState(LLVMCastKind kind) : m_kind(kind) {} - + PersistentExpressionState(LLVMCastKind kind); virtual ~PersistentExpressionState(); virtual lldb::ExpressionVariableSP diff --git a/lldb/include/lldb/Expression/Materializer.h b/lldb/include/lldb/Expression/Materializer.h --- a/lldb/include/lldb/Expression/Materializer.h +++ b/lldb/include/lldb/Expression/Materializer.h @@ -69,6 +69,7 @@ class PersistentVariableDelegate { public: + PersistentVariableDelegate(); virtual ~PersistentVariableDelegate(); virtual ConstString GetName() = 0; virtual void DidDematerialize(lldb::ExpressionVariableSP &variable) = 0; diff --git a/lldb/include/lldb/Symbol/TypeSystem.h b/lldb/include/lldb/Symbol/TypeSystem.h --- a/lldb/include/lldb/Symbol/TypeSystem.h +++ b/lldb/include/lldb/Symbol/TypeSystem.h @@ -77,6 +77,7 @@ public std::enable_shared_from_this { public: // Constructors and Destructors + TypeSystem(); ~TypeSystem() override; // LLVM RTTI support diff --git a/lldb/source/Expression/ExpressionVariable.cpp b/lldb/source/Expression/ExpressionVariable.cpp --- a/lldb/source/Expression/ExpressionVariable.cpp +++ b/lldb/source/Expression/ExpressionVariable.cpp @@ -15,6 +15,8 @@ using namespace lldb_private; +ExpressionVariable::ExpressionVariable(LLVMCastKind kind) + : m_flags(0), m_kind(kind) {} ExpressionVariable::~ExpressionVariable() = default; uint8_t *ExpressionVariable::GetValueBytes() { @@ -30,6 +32,8 @@ return nullptr; } +PersistentExpressionState::PersistentExpressionState(LLVMCastKind kind) + : m_kind(kind) {} PersistentExpressionState::~PersistentExpressionState() = default; lldb::addr_t PersistentExpressionState::LookupSymbol(ConstString name) { diff --git a/lldb/source/Expression/Materializer.cpp b/lldb/source/Expression/Materializer.cpp --- a/lldb/source/Expression/Materializer.cpp +++ b/lldb/source/Expression/Materializer.cpp @@ -1598,5 +1598,7 @@ m_process_address = LLDB_INVALID_ADDRESS; } +Materializer::PersistentVariableDelegate::PersistentVariableDelegate() = + default; Materializer::PersistentVariableDelegate::~PersistentVariableDelegate() = default; diff --git a/lldb/source/Symbol/TypeSystem.cpp b/lldb/source/Symbol/TypeSystem.cpp --- a/lldb/source/Symbol/TypeSystem.cpp +++ b/lldb/source/Symbol/TypeSystem.cpp @@ -36,6 +36,7 @@ bool LanguageSet::Empty() const { return bitvector.none(); } bool LanguageSet::operator[](unsigned i) const { return bitvector[i]; } +TypeSystem::TypeSystem() = default; TypeSystem::~TypeSystem() = default; static TypeSystemSP CreateInstanceHelper(lldb::LanguageType language,