aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2020-06-01 18:46:51 -0700
committerReid Kleckner <rnk@google.com>2020-06-01 18:51:47 -0700
commit11d1aa0bcc1197f1b3010171b02c6e9662f34b75 (patch)
treeea09614544874c3a5ee5955ba97a9490508c65f7 /clang/lib/Frontend/CompilerInvocation.cpp
parenta0b674fd7f06b86241cf19387313b508248a3868 (diff)
downloadllvm-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