aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-01-28 15:43:04 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-04-08 17:57:47 -0700
commit4a84b03eced28cf08636e45700d3c8594378f329 (patch)
tree55701e8696984a41a5027e362381eabd12052673 /clang/lib/Basic/SourceManager.cpp
parenteb8a28e2cf033f2bfbfe33a0bd0d9e75a12e2679 (diff)
downloadllvm-4a84b03eced28cf08636e45700d3c8594378f329.zip
llvm-4a84b03eced28cf08636e45700d3c8594378f329.tar.gz
llvm-4a84b03eced28cf08636e45700d3c8594378f329.tar.bz2
ADT: Sink the guts of StringMapEntry::Create into StringMapEntryBase
Sink the interesting parts of StringMapEntry::Create into a new function StringMapEntryBase::allocateWithKey that's only templated on the allocator, taking the entry size and alignment as parameters. As dblaikie pointed out in the review, it'd be interesting as a follow-up to make this more generic and maybe sink at least some of it into a source file; I haven't done that yet myself, but I left behind an encouraging comment. Differential Revision: https://reviews.llvm.org/D95654
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions