Add an SBExpressionOptions setting mirroring the "exec" command's --allow-jit.
<rdar://problem/44809176> Differential Revision: https://reviews.llvm.org/D54056 llvm-svn: 346053
This commit is contained in:
@@ -159,6 +159,15 @@ void SBExpressionOptions::SetTopLevel(bool b) {
|
||||
: m_opaque_ap->default_execution_policy);
|
||||
}
|
||||
|
||||
bool SBExpressionOptions::GetAllowJIT() {
|
||||
return m_opaque_ap->GetExecutionPolicy() != eExecutionPolicyNever;
|
||||
}
|
||||
|
||||
void SBExpressionOptions::SetAllowJIT(bool allow) {
|
||||
m_opaque_ap->SetExecutionPolicy(allow ? m_opaque_ap->default_execution_policy
|
||||
: eExecutionPolicyNever);
|
||||
}
|
||||
|
||||
EvaluateExpressionOptions *SBExpressionOptions::get() const {
|
||||
return m_opaque_ap.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user