Skip to content
  • Rui Ueyama's avatar
    COFF: Cache raw pointers to relocation tables. · cde92423
    Rui Ueyama authored
    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
    cde92423
Loading