reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
238 assert(F.isDeclaration() && "Can't turn a definition into a stub."); 239 assert(F.getParent() && "Function isn't in a module."); 240 Module &M = *F.getParent(); 241 BasicBlock *EntryBlock = BasicBlock::Create(M.getContext(), "entry", &F); 243 LoadInst *ImplAddr = Builder.CreateLoad(F.getType(), &ImplPointer); 245 for (auto &A : F.args()) 247 CallInst *Call = Builder.CreateCall(F.getFunctionType(), ImplAddr, CallArgs); 249 Call->setAttributes(F.getAttributes()); 250 if (F.getReturnType()->isVoidTy())