diff options
author | Reid Kleckner <rnk@google.com> | 2020-06-01 18:46:51 -0700 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2020-06-01 18:51:47 -0700 |
commit | 11d1aa0bcc1197f1b3010171b02c6e9662f34b75 (patch) | |
tree | ea09614544874c3a5ee5955ba97a9490508c65f7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a0b674fd7f06b86241cf19387313b508248a3868 (diff) | |
download | llvm-11d1aa0bcc1197f1b3010171b02c6e9662f34b75.zip llvm-11d1aa0bcc1197f1b3010171b02c6e9662f34b75.tar.gz llvm-11d1aa0bcc1197f1b3010171b02c6e9662f34b75.tar.bz2 |
[COFF] Free some memory used for chunks
First, do not reserve numSections in the Chunks array. In cases where
there are many non-prevailing sections, this will overallocate memory
which will not be used.
Second, free the memory for sparseChunks after initializeSymbols. After
that, it is never used.
This saves 50MB of 627MB for my use case without affecting performance.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions