diff options
author | Jordan Rose <jordan_rose@apple.com> | 2019-10-10 20:22:53 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2019-10-10 20:22:53 +0000 |
commit | aab67b571a3dc984d8990fdb05285c76b11f83d6 (patch) | |
tree | 745c5a9a6b1f9d590bb5527fea9a95ee01632948 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 2f56266234e55b12437c800327c96a65e305bf08 (diff) | |
download | llvm-aab67b571a3dc984d8990fdb05285c76b11f83d6.zip llvm-aab67b571a3dc984d8990fdb05285c76b11f83d6.tar.gz llvm-aab67b571a3dc984d8990fdb05285c76b11f83d6.tar.bz2 |
ADT: Save a word in every StringSet entry
Add a specialization to StringMap (actually StringMapEntry) for a
value type of NoneType (the type of llvm::None), and use it for
StringSet. This'll save us a word from every entry in a StringSet,
used for alignment with the size_t that stores the string length.
I could have gone all the way to some kind of empty base class
optimization, but that seemed like overkill. Someone can consider
adding that in the future, though.
https://reviews.llvm.org/D68586
llvm-svn: 374440
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions