diff options
author | Greg Clayton <gclayton@apple.com> | 2012-10-23 01:50:10 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-10-23 01:50:10 +0000 |
commit | 4a792072ceea00696c9bbce3de74c348cce608b9 (patch) | |
tree | 24711d5dd558428505777ef2bed986f9309b5f00 /lldb/scripts/Python/interface | |
parent | 164bb37c7be710a07879ebe9711da0229aa18021 (diff) | |
download | bcm5719-llvm-4a792072ceea00696c9bbce3de74c348cce608b9.tar.gz bcm5719-llvm-4a792072ceea00696c9bbce3de74c348cce608b9.zip |
<rdar://problem/12493007>
Added a new API call to help efficiently determine if a SBValue could have children:
bool
SBValue::MightHaveChildren ();
This is inteneded to be used bui GUI programs that need to show if a SBValue needs a disclosure triangle when displaying a hierarchical type in a tree view without having to complete the type (by calling SBValue::GetNumChildren()) as completing the type is expensive.
llvm-svn: 166460
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBValue.i | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index 00d9b567d83..1535c7714ad 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -302,6 +302,9 @@ public: lldb::SBDeclaration GetDeclaration (); + bool + MightHaveChildren (); + uint32_t GetNumChildren (); |