llvm-project/lldb/tools/lldb-server/SystemInitializerLLGS.cpp
Pavel Labath 5dd5833bd1 Fix windows/mac builds broken by r333182.
I should've known that something was wrong when only one of my plugins
was prefixed by the lldb_private namespace.

llvm-svn: 333183
2018-05-24 13:12:07 +00:00

34 lines
982 B
C++

//===-- SystemInitializerLLGS.cpp -------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "SystemInitializerLLGS.h"
#if defined(__APPLE__)
#include "Plugins/ObjectFile/Mach-O/ObjectFileMachO.h"
using HostObjectFile = ObjectFileMachO;
#elif defined(_WIN32)
#include "Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h"
using HostObjectFile = ObjectFilePECOFF;
#else
#include "Plugins/ObjectFile/ELF/ObjectFileELF.h"
using HostObjectFile = ObjectFileELF;
#endif
using namespace lldb_private;
void SystemInitializerLLGS::Initialize() {
SystemInitializerCommon::Initialize();
HostObjectFile::Initialize();
}
void SystemInitializerLLGS::Terminate() {
HostObjectFile::Terminate();
SystemInitializerCommon::Terminate();
}