Lines Matching defs:shim
20 // For those cases it synthesizes a shim which does the transition, then
21 // modifies the original atom with the B instruction to target to the shim atom.
45 _file(*_ctx.make_file<MachOFile>("<mach-o shim pass>")) {
70 // Sort shim atoms so the layout order is stable.
82 for (const DefinedAtom *shim : shims)
83 mergedFile.addAtom(*shim);
93 const DefinedAtom *shim = this->getShim(thumbToArm, target);
94 assert(shim != nullptr);
95 // Switch branch site to target shim atom.
96 const_cast<Reference *>(ref)->setTarget(shim);
102 // Reuse an existing shim.
106 // There is no existing shim, so create a new one.
107 const DefinedAtom *shim = _archHandler.createShim(_file, thumbToArm,
109 _targetToShim[&target] = shim;
110 return shim;