This is an archive of the discontinued LLVM Phabricator instance.

Initialization: move InstructionEmulation to full initialization
ClosedPublic

Authored by compnerd on May 3 2019, 4:40 PM.

Details

Summary

The debug server does not need to use the instruction emulation. This helps
reduce the size of the final lldb-server binary by another ~100K (~1% savings).

Diff Detail

Repository
rLLDB LLDB

Event Timeline

compnerd created this revision.May 3 2019, 4:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2019, 4:40 PM
Herald added a subscriber: mgorny. · View Herald Transcript
clayborg accepted this revision.May 3 2019, 5:07 PM

lgtm

This revision is now accepted and ready to land.May 3 2019, 5:07 PM
labath accepted this revision.May 5 2019, 6:09 AM

This looks much better, though I'd just change one tiny thing: in the macro "canonicalization" step, I'd define a custom macro, instead of reusing one of the system ones (_M_ARM and friends), as those are reserved identifiers and it's bad for your karma to define those.

It might also be nice to make the linking of the relevant plugins conditional in the cmake files, but judging by a quick search, there isn't a very straight forward way to do that (CMAKE_SYSTEM_PROCESSOR would be variable to look at, but it's values aren't very standardized).

compnerd closed this revision.May 6 2019, 12:36 PM

SVN r360067