diff options
| author | Pavel Labath <labath@google.com> | 2016-05-13 13:40:51 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2016-05-13 13:40:51 +0000 |
| commit | 04b979ffb2dae6da24e05674ecb08623d196a078 (patch) | |
| tree | b437bd207ec975a1393aabe75f000bad40ca573e /lldb/source | |
| parent | a0ea73c9af86c6d72bb9fe7826027841b93e682d (diff) | |
| download | bcm5719-llvm-04b979ffb2dae6da24e05674ecb08623d196a078.tar.gz bcm5719-llvm-04b979ffb2dae6da24e05674ecb08623d196a078.zip | |
Remove ASTContexts from SystemInitializerCommon
Summary:
The AST contexts are not needed in the server components, and the clang context in particular
pulls in large parts of clang into the binary. Simply removing these two calls reduces the
lldb-server size by about 50%--80%, depending on the architecture and build type.
This should not impact the client parts as the same calls are already present in
SystemInitializerFull.
Reviewers: tberghammer, clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D20236
llvm-svn: 269416
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/Initialization/SystemInitializerCommon.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lldb/source/Initialization/SystemInitializerCommon.cpp b/lldb/source/Initialization/SystemInitializerCommon.cpp index 7699cb1c4a0..2c772ea43a4 100644 --- a/lldb/source/Initialization/SystemInitializerCommon.cpp +++ b/lldb/source/Initialization/SystemInitializerCommon.cpp @@ -13,8 +13,6 @@ #include "lldb/Host/HostInfo.h" #include "lldb/Core/Log.h" #include "lldb/Core/Timer.h" -#include "lldb/Symbol/GoASTContext.h" -#include "lldb/Symbol/ClangASTContext.h" #include "Plugins/Instruction/ARM/EmulateInstructionARM.h" #include "Plugins/Instruction/MIPS/EmulateInstructionMIPS.h" #include "Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.h" @@ -98,9 +96,6 @@ SystemInitializerCommon::Initialize() process_gdb_remote::ProcessGDBRemoteLog::Initialize(); // Initialize plug-ins - ClangASTContext::Initialize(); - GoASTContext::Initialize(); - ObjectContainerBSDArchive::Initialize(); ObjectFileELF::Initialize(); ObjectFilePECOFF::Initialize(); @@ -154,9 +149,6 @@ SystemInitializerCommon::Terminate() PlatformMacOSX::Terminate(); PlatformRemoteiOS::Terminate(); - ClangASTContext::Terminate(); - GoASTContext::Terminate(); - EmulateInstructionARM::Terminate(); EmulateInstructionMIPS::Terminate(); EmulateInstructionMIPS64::Terminate(); |

