tmsriram added inline comments.
================ Comment at: lib/CodeGen/CGCall.cpp:1859 + if (auto *Fn = dyn_cast<FunctionDecl>(TargetDecl)) { + if (!Fn->isDefined() && !AttrOnCallSite) { + FuncAttrs.addAttribute(llvm::Attribute::NonLazyBind); ---------------- rnk wrote: > Remind me what happens when the definition is within the current DSO after > linking. I seem to recall that the call through memory is 6 bytes and the > direct pcrel call is 5 bytes, and the linker is required to know to rewrite > the indirect call to a nop. Is that accurate? That's accurate, the linker rewrites it with a nop equivalent. https://reviews.llvm.org/D39079 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits