reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
5439 Fn = nullptr; 5445 Fn = M->getFunction(FunctionName); 5446 if (!Fn) 5449 if (Fn->getType() != PFT) 5453 getTypeString(Fn->getType()) + "'"); 5455 } else if ((Fn = M->getFunction(FunctionName))) { 5468 Fn = cast<Function>(I->second.first); 5469 if (Fn->getType() != PFT) 5473 getTypeString(Fn->getType()) + "'"); 5478 if (!Fn) 5479 Fn = Function::Create(FT, GlobalValue::ExternalLinkage, AddrSpace, 5482 M->getFunctionList().splice(M->end(), M->getFunctionList(), Fn); 5484 assert(Fn->getAddressSpace() == AddrSpace && "Created function in wrong AS"); 5487 NumberedVals.push_back(Fn); 5489 Fn->setLinkage((GlobalValue::LinkageTypes)Linkage); 5490 maybeSetDSOLocal(DSOLocal, *Fn); 5491 Fn->setVisibility((GlobalValue::VisibilityTypes)Visibility); 5492 Fn->setDLLStorageClass((GlobalValue::DLLStorageClassTypes)DLLStorageClass); 5493 Fn->setCallingConv(CC); 5494 Fn->setAttributes(PAL); 5495 Fn->setUnnamedAddr(UnnamedAddr); 5496 Fn->setAlignment(MaybeAlign(Alignment)); 5497 Fn->setSection(Section); 5498 Fn->setPartition(Partition); 5499 Fn->setComdat(C); 5500 Fn->setPersonalityFn(PersonalityFn); 5501 if (!GC.empty()) Fn->setGC(GC); 5502 Fn->setPrefixData(Prefix); 5503 Fn->setPrologueData(Prologue); 5504 ForwardRefAttrGroups[Fn] = FwdRefAttrGrps; 5507 Function::arg_iterator ArgIt = Fn->arg_begin();