diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:09:23 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:09:23 +0000 |
| commit | f73363f1dd94996356cefbf24388f561891acf0b (patch) | |
| tree | e3c31248bdb36eaec5fd833490d4278162dba2a0 /tools/lldb-server/SystemInitializerLLGS.cpp | |
| parent | 160ee69dd7ae18978f4068116777639ea98dc951 (diff) | |
Notes
Diffstat (limited to 'tools/lldb-server/SystemInitializerLLGS.cpp')
| -rw-r--r-- | tools/lldb-server/SystemInitializerLLGS.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/lldb-server/SystemInitializerLLGS.cpp b/tools/lldb-server/SystemInitializerLLGS.cpp new file mode 100644 index 000000000000..aeaf382a1dd8 --- /dev/null +++ b/tools/lldb-server/SystemInitializerLLGS.cpp @@ -0,0 +1,33 @@ +//===-- 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(); +} |
