summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-03-24 01:11:14 +0000
committerEnrico Granata <egranata@apple.com>2012-03-24 01:11:14 +0000
commit86027e954c76b4ed9b699f64c3c1cdd2ba47ad5a (patch)
tree3906f7681c06f6108e99a6ab250cdd24522474c6 /lldb/scripts/Python
parent25553ab5fe1f5e802d0b08bd1d276b3ea94ceff2 (diff)
downloadbcm5719-llvm-86027e954c76b4ed9b699f64c3c1cdd2ba47ad5a.tar.gz
bcm5719-llvm-86027e954c76b4ed9b699f64c3c1cdd2ba47ad5a.zip
Adding a new API call IsTypeComplete() to SBType. This call is meant to check if the type has been previously completed or not (which is mostly interesting from a performance point of view)
Adding a test case that checks that we do not complete types before due time. This should help us track cases similar to the cascading data formatters. llvm-svn: 153363
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r--lldb/scripts/Python/interface/SBType.i7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i
index 4c84b2d816e..2b1d972fd8a 100644
--- a/lldb/scripts/Python/interface/SBType.i
+++ b/lldb/scripts/Python/interface/SBType.i
@@ -199,6 +199,9 @@ public:
lldb::TemplateArgumentKind
GetTemplateArgumentKind (uint32_t idx);
+
+ bool
+ IsTypeComplete ();
%pythoncode %{
def template_arg_array(self):
@@ -239,7 +242,9 @@ public:
__swig_getmethods__["class"] = GetTypeClass
if _newclass: x = property(GetTypeClass, None)
-
+
+ __swig_getmethods__["is_complete"] = IsTypeComplete
+ if _newclass: is_complete = property(IsTypeComplete, None)
%}
};
OpenPOWER on IntegriCloud