Move the definition of SBListener::GetSP() to SBListener.cpp.

This is the requirement for all functions in the public API,
to eliminate weak symbol definitions.

llvm-svn: 299020
This commit is contained in:
Sean Callanan 2017-03-29 19:32:59 +00:00
parent 4d93d66ddd
commit d53048c479
2 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,7 @@ protected:
SBListener(const lldb::ListenerSP &listener_sp);
lldb::ListenerSP GetSP() { return m_opaque_sp; }
lldb::ListenerSP GetSP();
private:
lldb_private::Listener *operator->() const;

View File

@ -302,6 +302,8 @@ bool SBListener::HandleBroadcastEvent(const SBEvent &event) {
return false;
}
lldb::ListenerSP SBListener::GetSP() { return m_opaque_sp; }
Listener *SBListener::operator->() const { return m_opaque_sp.get(); }
Listener *SBListener::get() const { return m_opaque_sp.get(); }