diff options
author | Jim Ingham <jingham@apple.com> | 2014-08-08 21:45:36 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-08-08 21:45:36 +0000 |
commit | 7ab079b6d0cc80f0ce765307ea2cebad8a6bfec6 (patch) | |
tree | 838fe0935ab8e54447f3cd997aacd806caf44a60 /lldb/source | |
parent | 7e774c249f3435d005f9d8e1405e088acc18b4bb (diff) | |
download | bcm5719-llvm-7ab079b6d0cc80f0ce765307ea2cebad8a6bfec6.tar.gz bcm5719-llvm-7ab079b6d0cc80f0ce765307ea2cebad8a6bfec6.zip |
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
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/API/SBExpressionOptions.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/source/API/SBExpressionOptions.cpp b/lldb/source/API/SBExpressionOptions.cpp index 0a55b614c7c..448ff4cf6dd 100644 --- a/lldb/source/API/SBExpressionOptions.cpp +++ b/lldb/source/API/SBExpressionOptions.cpp @@ -173,6 +173,19 @@ SBExpressionOptions::SetGenerateDebugInfo (bool b) 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 { |