This is an archive of the discontinued LLVM Phabricator instance.

[llvm-cvtres] Reduce the set of dependencies of llvm-cvtres. NFC.
ClosedPublic

Authored by mstorsjo on Apr 20 2021, 2:36 AM.

Details

Summary

Don't use createBinary() but call the WindowsResource class directly.
The createBinary() function references all supported object file
types and ends up pulling way more from all the underlying libraries
than what is necessary.

This shrinks llvm-cvtres from 4.6 MB to 463 KB.

Diff Detail

Event Timeline

mstorsjo created this revision.Apr 20 2021, 2:36 AM
mstorsjo requested review of this revision.Apr 20 2021, 2:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2021, 2:36 AM
thakis accepted this revision.Apr 20 2021, 8:28 AM

Nice!

This revision is now accepted and ready to land.Apr 20 2021, 8:28 AM

Wow. Excellent. Thank you!