aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2022-04-22 11:59:38 +0200
committerSam McCall <sam.mccall@gmail.com>2022-04-25 14:31:14 +0200
commit00f0c805ff7c0b5780d651d273899abe977fdca7 (patch)
treed10002d3bc8e45bd388c48836251fee38c70e3bc /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parente8945110d238289886cc51cafe9461bfcf109f6f (diff)
downloadllvm-00f0c805ff7c0b5780d651d273899abe977fdca7.zip
llvm-00f0c805ff7c0b5780d651d273899abe977fdca7.tar.gz
llvm-00f0c805ff7c0b5780d651d273899abe977fdca7.tar.bz2
[Frontend] shrink in-memory PCH buffers to fit
After building a PCH, the vector capacity is on average ~1/3 unused. If we're going to keep it in memory for a while, reallocate to the right size. Take care to do this once clang is destroyed so that we can reuse its memory rather than requesting more. Differential Revision: https://reviews.llvm.org/D124242
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
0 files changed, 0 insertions, 0 deletions