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
This commit is contained in:
Caroline Tice
2010-09-22 23:01:29 +00:00
parent a9424d4f2f
commit dac97f31a3
47 changed files with 171 additions and 348 deletions

View File

@@ -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());
}