[Lldb-commits] [PATCH] D47250: Move ObjectFile initialization out of SystemInitializerCommon

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 23 03:43:24 PDT 2018


labath created this revision.
labath added reviewers: zturner, clayborg.
Herald added a subscriber: mgorny.

For lldb-server, it is sufficient to parse only the native object file
format for its target OS (no other file can be loaded into a running
process). This moves the object file initialization code into specific
initializer classes: lldb-test and liblldb get all object files;
lldb-server gets only one of them. For this to work, I've needed to
create a special SystemInitializer for use in lldb-server, instead of it
calling directly into the common one.

This reduces the size of lldb-server by about 2%, which is not
earth-shattering, but it's an easy win, and it helps.


https://reviews.llvm.org/D47250

Files:
  source/API/SystemInitializerFull.cpp
  source/Initialization/CMakeLists.txt
  source/Initialization/SystemInitializerCommon.cpp
  tools/lldb-server/CMakeLists.txt
  tools/lldb-server/SystemInitializerLLGS.cpp
  tools/lldb-server/SystemInitializerLLGS.h
  tools/lldb-server/lldb-server.cpp
  tools/lldb-test/SystemInitializerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47250.148180.patch
Type: text/x-patch
Size: 8521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180523/3059f535/attachment-0001.bin>


More information about the lldb-commits mailing list