diff options
author | Greg Clayton <gclayton@apple.com> | 2012-02-03 05:34:10 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-02-03 05:34:10 +0000 |
commit | 9a142cf84d9f859a7e6020fc7d99af0789751784 (patch) | |
tree | 70bc038e7559130cb98fe75d632eee2763f0d6df /lldb/scripts/Python | |
parent | ccb673659a61faee2b9bbe3a4ab109c0b53f3f01 (diff) | |
download | bcm5719-llvm-9a142cf84d9f859a7e6020fc7d99af0789751784.tar.gz bcm5719-llvm-9a142cf84d9f859a7e6020fc7d99af0789751784.zip |
Fixed casting in the lldb::SBValue::Cast(SBType) function.
llvm-svn: 149673
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/interface/SBType.i | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i index 1b0f63b2ca9..4c84b2d816e 100644 --- a/lldb/scripts/Python/interface/SBType.i +++ b/lldb/scripts/Python/interface/SBType.i @@ -201,6 +201,15 @@ public: GetTemplateArgumentKind (uint32_t idx); %pythoncode %{ + def template_arg_array(self): + num_args = self.num_template_args + if num_args: + template_args = [] + for i in range(num_args): + template_args.append(self.GetTemplateArgumentType(i)) + return template_args + return None + __swig_getmethods__["name"] = GetName if _newclass: x = property(GetName, None) @@ -222,9 +231,16 @@ public: __swig_getmethods__["num_vbases"] = GetNumberOfVirtualBaseClasses if _newclass: x = property(GetNumberOfVirtualBaseClasses, None) + __swig_getmethods__["num_template_args"] = GetNumberOfTemplateArguments + if _newclass: x = property(GetNumberOfTemplateArguments, None) + + __swig_getmethods__["template_args"] = template_arg_array + if _newclass: x = property(template_arg_array, None) + __swig_getmethods__["class"] = GetTypeClass if _newclass: x = property(GetTypeClass, None) - %} + + %} }; |