diff options
| author | Pavel Labath <labath@google.com> | 2017-06-27 10:33:14 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2017-06-27 10:33:14 +0000 |
| commit | 4ccd99541bfc8f4f475dbacd1d17dc9817e92b1e (patch) | |
| tree | 8fc9c06e04fc5e172b6b8d90a90fe45f97e60b50 /lldb/source/API/SBCommunication.cpp | |
| parent | 0e74a134f8578c0a3f8616bd3f2cde5a6131e07b (diff) | |
| download | bcm5719-llvm-4ccd99541bfc8f4f475dbacd1d17dc9817e92b1e.tar.gz bcm5719-llvm-4ccd99541bfc8f4f475dbacd1d17dc9817e92b1e.zip | |
Move Connection and IOObject interfaces to Utility module
Summary:
These interfaces have no dependencies, so it makes sense for them to be
in the lowest level modules, to make sure that other parts of the
codebase can use them without introducing loops.
The only exception here is the Connection::CreateDefaultConnection
method, which I've moved to Host, as it instantiates concrete
implementations, and that's where the implementations live.
Reviewers: jingham, zturner
Subscribers: lldb-commits, mgorny
Differential Revision: https://reviews.llvm.org/D34400
llvm-svn: 306391
Diffstat (limited to 'lldb/source/API/SBCommunication.cpp')
| -rw-r--r-- | lldb/source/API/SBCommunication.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBCommunication.cpp b/lldb/source/API/SBCommunication.cpp index 8ebc33ca26a..63b672efe3c 100644 --- a/lldb/source/API/SBCommunication.cpp +++ b/lldb/source/API/SBCommunication.cpp @@ -11,6 +11,7 @@ #include "lldb/API/SBBroadcaster.h" #include "lldb/Core/Communication.h" #include "lldb/Host/ConnectionFileDescriptor.h" +#include "lldb/Host/Host.h" #include "lldb/Utility/Log.h" using namespace lldb; @@ -51,7 +52,7 @@ void SBCommunication::SetCloseOnEOF(bool b) { ConnectionStatus SBCommunication::Connect(const char *url) { if (m_opaque) { if (!m_opaque->HasConnection()) - m_opaque->SetConnection(Connection::CreateDefaultConnection(url)); + m_opaque->SetConnection(Host::CreateDefaultConnection(url).release()); return m_opaque->Connect(url, NULL); } return eConnectionStatusNoConnection; |

