Reduce the number of components initialized by lldb-server to reduce static binary...
authorRobert Flack <flackr@gmail.com>
Mon, 2 Mar 2015 15:14:50 +0000 (15:14 +0000)
committerRobert Flack <flackr@gmail.com>
Mon, 2 Mar 2015 15:14:50 +0000 (15:14 +0000)
commitab3269d275e7214ae0d48ba013e3f5376606b0d3
tree2ebef7bc0886a99e4563ec26d678344ec663953b
parent18fd49602b4e5c1c141a19f031b9f6d5caa7a423
Reduce the number of components initialized by lldb-server to reduce static binary size.

Separate out the necessary component initialization for lldb-server such that the linker can greatly reduce the binary size. With this patch the size of lldb-server on my 64 bit linux release build drops from 46MB to 26MB.

Differential Revision: http://reviews.llvm.org/D7880

llvm-svn: 230963
lldb/cmake/LLDBDependencies.cmake
lldb/include/lldb/lldb-private.h
lldb/lib/Makefile
lldb/source/Plugins/Makefile
lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
lldb/source/Plugins/SystemRuntime/CMakeLists.txt
lldb/source/lldb.cpp
lldb/tools/lldb-server/lldb-gdbserver.cpp
lldb/tools/lldb-server/lldb-platform.cpp
lldb/tools/lldb-server/lldb-server.cpp