diff options
Diffstat (limited to 'lldb/scripts/interface/SBModule.i')
| -rw-r--r-- | lldb/scripts/interface/SBModule.i | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBModule.i b/lldb/scripts/interface/SBModule.i index 06a4628d52b..03c8aeb2bed 100644 --- a/lldb/scripts/interface/SBModule.i +++ b/lldb/scripts/interface/SBModule.i @@ -8,6 +8,7 @@ namespace lldb { +#ifdef SWIGPYTHON %pythoncode%{ # ================================== # Helper function for SBModule class @@ -30,6 +31,7 @@ def in_range(symbol, section): else: return False %} +#endif %feature("docstring", "Represents an executable image and its associated object and symbol files. @@ -342,6 +344,7 @@ public: lldb::SBAddress GetObjectFileEntryPointAddress() const; +#ifdef SWIGPYTHON %pythoncode %{ def __len__(self): '''Return the number of symbols in a lldb.SBModule object.''' @@ -542,6 +545,7 @@ public: num_sections = property(GetNumSections, None, doc='''A read only property that returns number of sections in the module as an integer.''') %} +#endif }; |

