]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - source/Core/Connection.cpp
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / source / Core / Connection.cpp
1 //===-- Connection.cpp ------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // C Includes
11 // C++ Includes
12 // Other libraries and framework includes
13 // Project includes
14 #include "lldb/Core/Connection.h"
15
16 #if defined(_WIN32)
17 #include "lldb/Host/windows/ConnectionGenericFileWindows.h"
18 #endif
19
20 #include "lldb/Host/ConnectionFileDescriptor.h"
21
22 using namespace lldb_private;
23
24 Connection::Connection() {}
25
26 Connection::~Connection() {}
27
28 Connection *Connection::CreateDefaultConnection(const char *url) {
29 #if defined(_WIN32)
30   if (strstr(url, "file://") == url)
31     return new ConnectionGenericFile();
32 #endif
33   return new ConnectionFileDescriptor();
34 }