This is an archive of the discontinued LLVM Phabricator instance.

Move ObjectFile initialization out of SystemInitializerCommon
ClosedPublic

Authored by labath on May 23 2018, 3:43 AM.

Details

Summary

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.

Event Timeline

labath created this revision.May 23 2018, 3:43 AM
This revision is now accepted and ready to land.May 23 2018, 7:04 AM
This revision was automatically updated to reflect the committed changes.