summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-05-21 01:33:03 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-05-21 01:33:03 +0000
commit5435aa464a62f4d82fbe643ade6fdcc40acbd141 (patch)
treee4b63a1eee625e6606856387309007a191e6337c /llvm/lib/MC/MachObjectWriter.cpp
parente520293c8b45ceddee022af2cec0a16724d1c526 (diff)
downloadbcm5719-llvm-5435aa464a62f4d82fbe643ade6fdcc40acbd141.tar.gz
bcm5719-llvm-5435aa464a62f4d82fbe643ade6fdcc40acbd141.zip
MC: Simplify MCSymbolData initialization and remove MCSymbol pointer
Finally remove the `MCSymbolData::Symbol` pointer. It was still being used to track whether `MCSymbolData` had been initialized, but this is better tracked by the bitfield in `MCSymbol`. The only caller of `MCSymbolData::initialize()` was `MCAssembler`, which (other than `Symbol`) passed in all-0 values. Replace all that indirection with a default constructor. The main point is a cleanup (and there's more cleanup to do), but there are also some small memory savings. I measured ~989 MB down to ~975 MB, cutting a little over 1% off the top of `llc`. (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 237873
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud