Lines Matching refs:Function
39 BinaryFunction &Function = BFI.second; in runOnFunctions() local
40 if (!BC.shouldEmit(Function) && !Function.hasExternalRefRelocations()) { in runOnFunctions()
62 BinaryFunction &Function = BFI.second; in runOnFunctions() local
65 if (!BC.shouldEmit(Function)) in runOnFunctions()
69 if (!opts::ForcePatch && !Function.hasEHRanges() && in runOnFunctions()
70 Function.getSize() < PatchThreshold) in runOnFunctions()
79 bool Success = Function.forEachEntryPoint([&](uint64_t Offset, in runOnFunctions()
83 outs() << "BOLT-INFO: unable to patch entry point in " << Function in runOnFunctions()
88 PendingPatches.emplace_back(Patch{Symbol, Function.getAddress() + Offset, in runOnFunctions()
89 Function.getFileOffset() + Offset, in runOnFunctions()
90 Function.getOriginSection()}); in runOnFunctions()
92 if (NextValidByte > Function.getMaxSize()) { in runOnFunctions()
94 outs() << "BOLT-INFO: function " << Function in runOnFunctions()
105 errs() << "BOLT-WARNING: failed to patch entries in " << Function in runOnFunctions()
107 Function.setIgnored(); in runOnFunctions()
130 Function.setIsPatched(true); in runOnFunctions()