diff options
author | Greg Clayton <gclayton@apple.com> | 2012-04-04 20:36:48 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-04-04 20:36:48 +0000 |
commit | 7e8a601c56760905208ee748daf74bc302fb905c (patch) | |
tree | 7b8619a000c89c5c8ac8c8cce963b32530e66565 /lldb/source/API/SBLineEntry.cpp | |
parent | 379018b2da51c61a8768375860fa95eb2b959dba (diff) | |
download | bcm5719-llvm-7e8a601c56760905208ee748daf74bc302fb905c.tar.gz bcm5719-llvm-7e8a601c56760905208ee748daf74bc302fb905c.zip |
Change SBAddress back to using a std::auto_ptr to a lldb_private::Address as the lldb_private::Address has a weak pointer to the section which has a weak pointer back to the module, so it is safe to have just a lldb_private::Address object now.
llvm-svn: 154045
Diffstat (limited to 'lldb/source/API/SBLineEntry.cpp')
-rw-r--r-- | lldb/source/API/SBLineEntry.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/source/API/SBLineEntry.cpp b/lldb/source/API/SBLineEntry.cpp index db288bc6f0c..3f923e92381 100644 --- a/lldb/source/API/SBLineEntry.cpp +++ b/lldb/source/API/SBLineEntry.cpp @@ -75,8 +75,9 @@ SBLineEntry::GetStartAddress () const if (log) { StreamString sstr; - if (sb_address.get()) - sb_address->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4); + const Address *addr = sb_address.get(); + if (addr) + addr->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4); log->Printf ("SBLineEntry(%p)::GetStartAddress () => SBAddress (%p): %s", m_opaque_ap.get(), sb_address.get(), sstr.GetData()); } @@ -97,8 +98,9 @@ SBLineEntry::GetEndAddress () const if (log) { StreamString sstr; - if (sb_address.get()) - sb_address->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4); + const Address *addr = sb_address.get(); + if (addr) + addr->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4); log->Printf ("SBLineEntry(%p)::GetEndAddress () => SBAddress (%p): %s", m_opaque_ap.get(), sb_address.get(), sstr.GetData()); } |