From dac97f31a38cd97c4c2c0465d8fcd462e7744145 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Wed, 22 Sep 2010 23:01:29 +0000 Subject: 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 --- lldb/source/API/SBCompileUnit.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lldb/source/API/SBCompileUnit.cpp') diff --git a/lldb/source/API/SBCompileUnit.cpp b/lldb/source/API/SBCompileUnit.cpp index 9e68e28c01d..42bbf82a7e5 100644 --- a/lldb/source/API/SBCompileUnit.cpp +++ b/lldb/source/API/SBCompileUnit.cpp @@ -125,6 +125,7 @@ SBCompileUnit::GetDescription (SBStream &description) { if (m_opaque_ptr) { + description.ref(); m_opaque_ptr->Dump (description.get(), false); } else @@ -132,12 +133,3 @@ SBCompileUnit::GetDescription (SBStream &description) return true; } - -PyObject * -SBCompileUnit::__repr__ () -{ - SBStream description; - description.ref(); - GetDescription (description); - return PyString_FromString (description.GetData()); -} -- cgit v1.2.3