From d53048c47906dd9be1789a99b6e4a239fceecce5 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Wed, 29 Mar 2017 19:32:59 +0000 Subject: [PATCH] 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 --- lldb/include/lldb/API/SBListener.h | 2 +- lldb/source/API/SBListener.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/include/lldb/API/SBListener.h b/lldb/include/lldb/API/SBListener.h index 05282c2..a2f82a8 100644 --- a/lldb/include/lldb/API/SBListener.h +++ b/lldb/include/lldb/API/SBListener.h @@ -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; diff --git a/lldb/source/API/SBListener.cpp b/lldb/source/API/SBListener.cpp index d43a4bc..50fed4e 100644 --- a/lldb/source/API/SBListener.cpp +++ b/lldb/source/API/SBListener.cpp @@ -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(); } -- 2.7.4