[lldb][NFCI] Remove UserExpression::GetJITModule

UserExpression::GetJITModule was used to support an option in
UserExpression::Evaluate that let you hold onto the JIT Module used during
the expression evaluation. This was only actually used in one spot --
REPL::IOHandlerInputComplete. That method didn't actually take use the
JIT module it got back, so this feature was not used in practice.
This means that we can delete the support in UserExpression::Evaluate
and delete the UserExpression::GetJITModule method entirely.
This commit is contained in:
Alex Langford
2020-01-30 23:16:12 -08:00
parent 22b044877d
commit 381e81a048
6 changed files with 10 additions and 32 deletions

View File

@@ -357,8 +357,3 @@ bool LLVMUserExpression::PrepareToExecuteJITExpression(
return true;
}
lldb::ModuleSP LLVMUserExpression::GetJITModule() {
if (m_execution_unit_sp)
return m_execution_unit_sp->GetJITModule();
return lldb::ModuleSP();
}