diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-15 22:56:01 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-15 22:56:01 +0000 |
commit | 7939d119e15de3474aaf7c6c40878a831294e55c (patch) | |
tree | cce233658003262b3a8565241acb5bbd9932e352 /llvm/lib/Bitcode/Reader | |
parent | 70528d7863376330935f20bb7cc150b2dac8a44c (diff) | |
download | bcm5719-llvm-7939d119e15de3474aaf7c6c40878a831294e55c.tar.gz bcm5719-llvm-7939d119e15de3474aaf7c6c40878a831294e55c.zip |
MC: Change MCAssembler::Symbols to a vector
Instead of an intrusive double-linked linked list, use a
`std::vector<>`. This saves a pointer per symbol and simplifies
`MCSymbolData`. Otherwise, no functionality change here.
While I measured a memory drop from around 1047MB to 1040MB (0.6%) --
and this is a decent cleanup in its own right -- it's primarily a
preparation patch for merging `MCSymbol` and `MCSymbolData`. I'll post
an updated patch for that to the list in a moment.
(I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`;
see r236629 for details.)
llvm-svn: 237487
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions