summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/interface/SBFunction.i
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-02 22:18:35 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-02 22:18:35 +0000
commit89b658428bae3b749f174ca79f0fe390451d8f69 (patch)
tree1b02a3af90f9be9c3bc27fecdf67bbb5c1443fb2 /lldb/scripts/interface/SBFunction.i
parent54c7907f52eaefbfa33c741008d2124f7d62bb99 (diff)
downloadbcm5719-llvm-89b658428bae3b749f174ca79f0fe390451d8f69.tar.gz
bcm5719-llvm-89b658428bae3b749f174ca79f0fe390451d8f69.zip
[swig] Don't mess with swig internals.
As of SWIG 4.0, __swig_getmethods__ and __swig_setmethods__ are no longer defined. It appears that there's no need to mess with these internals, we can simplify define the corresponding properties inline. Originally I wanted to use the swig extension %attribute and %attributeref to define properties. However, I couldn't find a way to add documentation to these attributes. Since we already had the properties defined inline, we might as well keep them. Differential revision: https://reviews.llvm.org/D63530 llvm-svn: 364974
Diffstat (limited to 'lldb/scripts/interface/SBFunction.i')
-rw-r--r--lldb/scripts/interface/SBFunction.i31
1 files changed, 8 insertions, 23 deletions
diff --git a/lldb/scripts/interface/SBFunction.i b/lldb/scripts/interface/SBFunction.i
index e3e6907e23f..3acb0057cc3 100644
--- a/lldb/scripts/interface/SBFunction.i
+++ b/lldb/scripts/interface/SBFunction.i
@@ -115,29 +115,14 @@ public:
def get_instructions_from_current_target (self):
return self.GetInstructions (target)
- __swig_getmethods__["addr"] = GetStartAddress
- if _newclass: addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this function.''')
-
- __swig_getmethods__["end_addr"] = GetEndAddress
- if _newclass: end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this function.''')
-
- __swig_getmethods__["block"] = GetBlock
- if _newclass: block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the top level lexical block (lldb.SBBlock) for this function.''')
-
- __swig_getmethods__["instructions"] = get_instructions_from_current_target
- if _newclass: instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this function.''')
-
- __swig_getmethods__["mangled"] = GetMangledName
- if _newclass: mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this function as a string.''')
-
- __swig_getmethods__["name"] = GetName
- if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this function as a string.''')
-
- __swig_getmethods__["prologue_size"] = GetPrologueByteSize
- if _newclass: prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''')
-
- __swig_getmethods__["type"] = GetType
- if _newclass: type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the return type (lldb.SBType) for this function.''')
+ addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this function.''')
+ end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this function.''')
+ block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the top level lexical block (lldb.SBBlock) for this function.''')
+ instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this function.''')
+ mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this function as a string.''')
+ name = property(GetName, None, doc='''A read only property that returns the name for this function as a string.''')
+ prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''')
+ type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the return type (lldb.SBType) for this function.''')
%}
};
OpenPOWER on IntegriCloud