[PATCH] D117348: [Preprocessor] Reduce the memory overhead of `#define` directives

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 18 14:29:23 PST 2022


dexonsmith added inline comments.


================
Comment at: clang/lib/Lex/MacroInfo.cpp:33
+
+// MacroInfo is expected to take 40 bytes on platforms with an 8 byte pointer.
+template <int> class MacroInfoSizeChecker {
----------------
aaron.ballman wrote:
> Should we do this dance for 32-bit systems as well?
Do I remember correctly that `SourceLocation`'s size recently became configurable? Or maybe it will be soon? Should that be factored in somehow?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117348/new/

https://reviews.llvm.org/D117348



More information about the cfe-commits mailing list