aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-06-24 23:03:17 +0000
committerRui Ueyama <ruiu@google.com>2015-06-24 23:03:17 +0000
commitcde92423d75c64dc21b8fd84a089cec8a5c0d639 (patch)
tree3febb074241e0fbff03cfd7a70285ce356b01fa7 /llvm/lib/Object/COFFObjectFile.cpp
parent5ec5128f6468b76779fbd64c9018813e5ef8b53a (diff)
downloadllvm-cde92423d75c64dc21b8fd84a089cec8a5c0d639.zip
llvm-cde92423d75c64dc21b8fd84a089cec8a5c0d639.tar.gz
llvm-cde92423d75c64dc21b8fd84a089cec8a5c0d639.tar.bz2
COFF: Cache raw pointers to relocation tables.
Getting an iterator to the relocation table is very hot operation in the linker. We do that not only to apply relocations but also to mark live sections and to do ICF. libObject's interface is slow. By caching pointers to the first relocation table entries makes the linker 6% faster to self-link. We probably need to fix libObject as well. llvm-svn: 240603
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions