diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-24 16:14:59 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-24 16:14:59 +0000 |
commit | 1a65e4ade4e77ad56a57502dcb0cb21b2850df7a (patch) | |
tree | bf8347914756152c8d7abb2f14be13e0b89173ee /llvm/unittests/CodeGen/DIEHashTest.cpp | |
parent | 004e73420d1d8ffdc75ff7d9c88911f33c6c6278 (diff) | |
download | bcm5719-llvm-1a65e4ade4e77ad56a57502dcb0cb21b2850df7a.tar.gz bcm5719-llvm-1a65e4ade4e77ad56a57502dcb0cb21b2850df7a.zip |
AsmPrinter: Emit the DwarfStringPool offset directly when possible
Change `DwarfStringPool` to calculate byte offsets on-the-fly, and
update `DwarfUnit::getLocalString()` to use a `DIEInteger` instead of a
`DIEDelta` when Dwarf doesn't use relocations (i.e., Mach-O). This
eliminates another call to `EmitLabelDifference()`, and drops memory
usage from 865 MB down to 861 MB, around 0.5%.
(I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`;
see r236629 for details.)
llvm-svn: 238114
Diffstat (limited to 'llvm/unittests/CodeGen/DIEHashTest.cpp')
0 files changed, 0 insertions, 0 deletions