diff options
| author | Enrico Granata <egranata@apple.com> | 2012-12-10 19:55:53 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2012-12-10 19:55:53 +0000 |
| commit | ecbabe6d6698be496f268f98f8309bbf207fd94a (patch) | |
| tree | 31ad600d6fbd0691d66818a827a4558f879a601c /lldb/examples/synthetic/gnu_libstdcpp.py | |
| parent | cdf218d6060484a62cec5401add31c7480f8d14a (diff) | |
| download | bcm5719-llvm-ecbabe6d6698be496f268f98f8309bbf207fd94a.tar.gz bcm5719-llvm-ecbabe6d6698be496f268f98f8309bbf207fd94a.zip | |
<rdar://problem/12848118>
Making MightHaveChildren() always return true regardless for our own data formatters
This is meant to optimize performance for common most-often-not-empty container classes
llvm-svn: 169759
Diffstat (limited to 'lldb/examples/synthetic/gnu_libstdcpp.py')
| -rw-r--r-- | lldb/examples/synthetic/gnu_libstdcpp.py | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/lldb/examples/synthetic/gnu_libstdcpp.py b/lldb/examples/synthetic/gnu_libstdcpp.py index 0d124d75865..1cc92a75428 100644 --- a/lldb/examples/synthetic/gnu_libstdcpp.py +++ b/lldb/examples/synthetic/gnu_libstdcpp.py @@ -133,24 +133,6 @@ class StdListSynthProvider: pass def has_children(self): - logger = lldb.formatters.Logger.Logger() - if self.count == None: - self.update () - try: - next_val = self.next.GetValueAsUnsigned(0) - prev_val = self.prev.GetValueAsUnsigned(0) - if next_val == 0 or prev_val == 0: - return False - if next_val == self.node_address: - return False - # skip all the advanced logic to detect the exact count of children - # in the interest of speed from this point on, we MIGHT have children - # our loop detection logic will still make nothing show up :) - return True - except: - return False - if self.count == 0: - return False return True class StdVectorSynthProvider: @@ -249,7 +231,7 @@ class StdVectorSynthProvider: def has_children(self): - return self.num_children() > 0 + return True class StdMapSynthProvider: @@ -434,7 +416,7 @@ class StdMapSynthProvider: return x; def has_children(self): - return self.num_children() > 0 + return True _map_capping_size = 255 _list_capping_size = 255 |

