diff options
author | Caroline Tice <ctice@apple.com> | 2010-09-22 23:01:29 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-09-22 23:01:29 +0000 |
commit | dac97f31a38cd97c4c2c0465d8fcd462e7744145 (patch) | |
tree | 82035593be20cfb2c47f61ceca4ebe795c0c431e /lldb/source/API/SBFunction.cpp | |
parent | a9424d4f2f9984a05ffe8c29f0c9b3a521829f18 (diff) | |
download | bcm5719-llvm-dac97f31a38cd97c4c2c0465d8fcd462e7744145.tar.gz bcm5719-llvm-dac97f31a38cd97c4c2c0465d8fcd462e7744145.zip |
Remove all the __repr__ methods from the API/*.h files, and put them
into python-extensions.swig, which gets included into lldb.swig, and
adds them back into the classes when swig generates it's C++ file. This
keeps the Python stuff out of the general API classes.
Also fixed a small bug in the copy constructor for SBSymbolContext.
llvm-svn: 114602
Diffstat (limited to 'lldb/source/API/SBFunction.cpp')
-rw-r--r-- | lldb/source/API/SBFunction.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp index 4c5f64e23ca..38e349bd3f9 100644 --- a/lldb/source/API/SBFunction.cpp +++ b/lldb/source/API/SBFunction.cpp @@ -69,6 +69,7 @@ SBFunction::GetDescription (SBStream &description) { if (m_opaque_ptr) { + description.ref(); m_opaque_ptr->Dump (description.get(), false); } else @@ -76,12 +77,3 @@ SBFunction::GetDescription (SBStream &description) return true; } - -PyObject * -SBFunction::__repr__ () -{ - SBStream description; - description.ref(); - GetDescription (description); - return PyString_FromString (description.GetData()); -} |