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 | 7e34ceccefa6598d1b6c47c2ef06a51858f3e2db (patch) | |
tree | 3e4af2666bed2026da700a056f4f6009b7365f44 /source/Initialization/SystemInitializerCommon.cpp | |
parent | 5a7358fee7a9d15166d79dd866f37554312fd9a9 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@269416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Initialization/SystemInitializerCommon.cpp')
-rw-r--r-- | source/Initialization/SystemInitializerCommon.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/Initialization/SystemInitializerCommon.cpp b/source/Initialization/SystemInitializerCommon.cpp index 7699cb1c4..2c772ea43 100644 --- a/source/Initialization/SystemInitializerCommon.cpp +++ b/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(); |