This adjusts header file includes for headers and source files in Core. In doing so, one dependency cycle is eliminated because all the includes from Core to that project were dead includes anyway. In places where some files in other projects were only compiling due to a transitive include from another header, fixups have been made so that those files also include the header they need. Tested on Windows and Linux, and plan to address failures on OSX and FreeBSD after watching the bots. llvm-svn: 299714
33 lines
853 B
C++
33 lines
853 B
C++
//===-- Connection.cpp ------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "lldb/Core/Connection.h"
|
|
|
|
#if defined(_WIN32)
|
|
#include "lldb/Host/windows/ConnectionGenericFileWindows.h"
|
|
#endif
|
|
|
|
#include "lldb/Host/ConnectionFileDescriptor.h"
|
|
|
|
#include <string.h> // for strstr
|
|
|
|
using namespace lldb_private;
|
|
|
|
Connection::Connection() {}
|
|
|
|
Connection::~Connection() {}
|
|
|
|
Connection *Connection::CreateDefaultConnection(const char *url) {
|
|
#if defined(_WIN32)
|
|
if (strstr(url, "file://") == url)
|
|
return new ConnectionGenericFile();
|
|
#endif
|
|
return new ConnectionFileDescriptor();
|
|
}
|