summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-10-30 16:57:17 +0000
committerGreg Clayton <gclayton@apple.com>2012-10-30 16:57:17 +0000
commit373670df5a60e2e968039ee5dab44c1845f3e4eb (patch)
treed3c2119287b8e6baa820f583c087158c86718eb0 /lldb/scripts/Python/interface
parent7bba3f14bff0082e08861616c1d4b97660c43f84 (diff)
downloadbcm5719-llvm-373670df5a60e2e968039ee5dab44c1845f3e4eb.tar.gz
bcm5719-llvm-373670df5a60e2e968039ee5dab44c1845f3e4eb.zip
Added the ability to get function return and argument types to SBType():
bool SBType::IsFunctionType (); lldb::SBType SBType::GetFunctionReturnType (); lldb::SBTypeList SBType::GetFunctionArgumentTypes (); llvm-svn: 167023
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBType.i14
1 files changed, 13 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i
index 76fdfc923bd..82dff14fbd3 100644
--- a/lldb/scripts/Python/interface/SBType.i
+++ b/lldb/scripts/Python/interface/SBType.i
@@ -161,6 +161,9 @@ public:
bool
IsReferenceType();
+
+ bool
+ IsFunctionType ();
lldb::SBType
GetPointerType();
@@ -216,6 +219,12 @@ public:
lldb::TemplateArgumentKind
GetTemplateArgumentKind (uint32_t idx);
+ lldb::SBType
+ GetFunctionReturnType ();
+
+ lldb::SBTypeList
+ GetFunctionArgumentTypes ();
+
bool
IsTypeComplete ();
@@ -240,7 +249,10 @@ public:
__swig_getmethods__["is_reference"] = IsReferenceType
if _newclass: is_reference = property(IsReferenceType, None, doc='''A read only property that returns a boolean value that indicates if this type is a reference type.''')
-
+
+ __swig_getmethods__["is_function"] = IsFunctionType
+ if _newclass: is_reference = property(IsReferenceType, None, doc='''A read only property that returns a boolean value that indicates if this type is a function type.''')
+
__swig_getmethods__["num_fields"] = GetNumberOfFields
if _newclass: num_fields = property(GetNumberOfFields, None, doc='''A read only property that returns number of fields in this type as an integer.''')
OpenPOWER on IntegriCloud