diff options
author | Greg Clayton <gclayton@apple.com> | 2013-06-19 21:50:28 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-06-19 21:50:28 +0000 |
commit | d8c3d4b1e9f8695a9c063615a324cb105c9ab780 (patch) | |
tree | cd14cf1ec62a3ee6215f7f1e8bab6cb0af9c9daf /lldb/scripts/Python/python-extensions.swig | |
parent | 6d2cfb80ba239ed47d962d7dd2487c168082c531 (diff) | |
download | bcm5719-llvm-d8c3d4b1e9f8695a9c063615a324cb105c9ab780.tar.gz bcm5719-llvm-d8c3d4b1e9f8695a9c063615a324cb105c9ab780.zip |
Implemented a types.py module that allows types to be inspected for padding.
The script was able to point out and save 40 bytes in each lldb_private::Section by being very careful where we need to have virtual destructors and also by re-ordering members.
llvm-svn: 184364
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
-rw-r--r-- | lldb/scripts/Python/python-extensions.swig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig index a6ca497bdb5..14dc044856e 100644 --- a/lldb/scripts/Python/python-extensions.swig +++ b/lldb/scripts/Python/python-extensions.swig @@ -759,7 +759,7 @@ %pythoncode %{ def command(*args, **kwargs): - from lldb import debugger + import lldb """A decorator function that registers an LLDB command line command that is bound to the function it is attached to.""" class obj(object): @@ -769,7 +769,7 @@ def command(*args, **kwargs): if doc: function.__doc__ = doc command = "command script add -f %s.%s %s" % (function.__module__, function.__name__, command_name) - debugger.HandleCommand(command) + lldb.debugger.HandleCommand(command) self.function = function def __call__(self, *args, **kwargs): self.function(*args, **kwargs) |