mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Move OperatingSystem plugins to SystemInitializerFull
Summary: These are not needed in lldb-server. Removing them shrinks the server size by about 1.5%. Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D18188 llvm-svn: 263625
This commit is contained in:
@@ -57,6 +57,8 @@
|
||||
#include "Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h"
|
||||
#include "Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h"
|
||||
#include "Plugins/MemoryHistory/asan/MemoryHistoryASan.h"
|
||||
#include "Plugins/OperatingSystem/Python/OperatingSystemPython.h"
|
||||
#include "Plugins/OperatingSystem/Go/OperatingSystemGo.h"
|
||||
#include "Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h"
|
||||
#include "Plugins/Process/elf-core/ProcessElfCore.h"
|
||||
#include "Plugins/Process/gdb-remote/ProcessGDBRemote.h"
|
||||
@@ -259,6 +261,11 @@ SystemInitializerFull::Initialize()
|
||||
SystemInitializerCommon::Initialize();
|
||||
ScriptInterpreterNone::Initialize();
|
||||
|
||||
#ifndef LLDB_DISABLE_PYTHON
|
||||
OperatingSystemPython::Initialize();
|
||||
#endif
|
||||
OperatingSystemGo::Initialize();
|
||||
|
||||
#if !defined(LLDB_DISABLE_PYTHON)
|
||||
InitializeSWIG();
|
||||
|
||||
@@ -462,6 +469,11 @@ SystemInitializerFull::Terminate()
|
||||
process_gdb_remote::ProcessGDBRemote::Terminate();
|
||||
DynamicLoaderStatic::Terminate();
|
||||
|
||||
#ifndef LLDB_DISABLE_PYTHON
|
||||
OperatingSystemPython::Terminate();
|
||||
#endif
|
||||
OperatingSystemGo::Terminate();
|
||||
|
||||
// Now shutdown the common parts, in reverse order.
|
||||
SystemInitializerCommon::Terminate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user