opnsense-src/source/Core/Connection.cpp
Ed Maste 205afe6798 Import LLDB as of upstream SVN r225923 (git 2b588ecd)
This corresponds with the branchpoint for the 3.6 release.
A number of files not required for the FreeBSD build have been removed.

Sponsored by:	DARPA, AFRL
2015-02-06 21:38:51 +00:00

40 lines
923 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.
//
//===----------------------------------------------------------------------===//
// C Includes
// C++ Includes
// Other libraries and framework includes
// Project includes
#include "lldb/Core/Connection.h"
#if defined(_WIN32)
#include "lldb/Host/windows/ConnectionGenericFileWindows.h"
#endif
#include "lldb/Host/ConnectionFileDescriptor.h"
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();
}