Example #1
0
void MachOLinkingContext::addPasses(PassManager &pm) {
  pm.add(std::unique_ptr<Pass>(new LayoutPass(registry())));
  if (needsStubsPass())
    mach_o::addStubsPass(pm, *this);
  if (needsGOTPass())
    mach_o::addGOTPass(pm, *this);
}
Example #2
0
void MachOLinkingContext::addPasses(PassManager &pm) {
    mach_o::addLayoutPass(pm, *this);
    if (needsStubsPass())
        mach_o::addStubsPass(pm, *this);
    if (needsCompactUnwindPass())
        mach_o::addCompactUnwindPass(pm, *this);
    if (needsGOTPass())
        mach_o::addGOTPass(pm, *this);
    if (needsTLVPass())
        mach_o::addTLVPass(pm, *this);
    if (needsShimPass())
        mach_o::addShimPass(pm, *this); // Shim pass must run after stubs pass.
}