This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] pack StaticDiagInfoRec
ClosedPublic

Authored by njames93 on Feb 26 2021, 6:29 AM.

Details

Summary

Exchanging types, reordering fields and borrowing a bit from OptionGroupIndex shrinks this from 12 bytes to 8.
This knocks ~20k from the binary size.

Diff Detail

Event Timeline

njames93 requested review of this revision.Feb 26 2021, 6:29 AM
njames93 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 26 2021, 6:29 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Feb 26 2021, 10:34 AM

LGTM!

clang/lib/Basic/DiagnosticIDs.cpp
171

FWIW, I'd personally prefer to remove the clang-format on comment below. I'm not keen on littering the code base with workarounds for clang-format.

This revision is now accepted and ready to land.Feb 26 2021, 10:34 AM
This revision was landed with ongoing or failed builds.Mar 2 2021, 6:53 PM
This revision was automatically updated to reflect the committed changes.