Add an option to suppress the persistent result variable when running EvaluateExpression
from Python. If you don't need to refer to the result in another expression, there's no
need to bloat the persistent variable table with them since you already have the result
SBValue to work with.
<rdar://problem/17963645>
llvm-svn: 215244
diff --git a/lldb/source/API/SBExpressionOptions.cpp b/lldb/source/API/SBExpressionOptions.cpp
index 0a55b61..448ff4c 100644
--- a/lldb/source/API/SBExpressionOptions.cpp
+++ b/lldb/source/API/SBExpressionOptions.cpp
@@ -173,6 +173,19 @@
return m_opaque_ap->SetGenerateDebugInfo(b);
}
+bool
+SBExpressionOptions::GetSuppressPersistentResult ()
+{
+ return m_opaque_ap->GetResultIsInternal ();
+}
+
+void
+SBExpressionOptions::SetSuppressPersistentResult (bool b)
+{
+ return m_opaque_ap->SetResultIsInternal (b);
+}
+
+
EvaluateExpressionOptions *
SBExpressionOptions::get() const
{