diff options
author | Rui Ueyama <ruiu@google.com> | 2018-09-14 22:57:39 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-09-14 22:57:39 +0000 |
commit | 751dfbe39b8a0206883bce7259ba4f3464fc420d (patch) | |
tree | f2f697b74afbc7a9a71de794c214a96bcbed82e4 /clang/lib/Lex/ModuleMap.cpp | |
parent | 88b7443f9455c45a7df5ca1590d2a051ab6f12e9 (diff) | |
download | llvm-751dfbe39b8a0206883bce7259ba4f3464fc420d.zip llvm-751dfbe39b8a0206883bce7259ba4f3464fc420d.tar.gz llvm-751dfbe39b8a0206883bce7259ba4f3464fc420d.tar.bz2 |
Discard uncompressed buffer after creating .gdb_index contents.
Once we create .gdb_index contents, .zdebug_gnu_pub{names,types}
are useless, so there's no need to keep their uncompressed data
in memory.
I observed that for a test case in which lld creates a 3GB .gdb_index
section, the maximum resident set size reduced from 43GB to 29GB after
this patch.
Differential Revision: https://reviews.llvm.org/D52126
llvm-svn: 342297
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions