Lines Matching refs:FD
181 StringRef CGDebugInfo::getFunctionName(const FunctionDecl *FD) {
182 assert(FD && "Invalid FunctionDecl!");
183 IdentifierInfo *FII = FD->getIdentifier();
185 FD->getTemplateSpecializationInfo();
198 FD->printQualifiedName(OS, Policy);
202 FD->printName(OS);
1314 else if (const auto *FD = dyn_cast<FunctionDecl>(D))
1315 V = CGM.GetAddrOfFunction(FD);
1383 CGDebugInfo::CollectFunctionTemplateParams(const FunctionDecl *FD,
1385 if (FD->getTemplatedKind() ==
1387 const TemplateParameterList *TList = FD->getTemplateSpecializationInfo()
1391 TList, FD->getTemplateSpecializationArgs()->asArray(), Unit);
2415 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
2416 Name = getFunctionName(FD);
2418 if (FD->hasPrototype()) {
2433 dyn_cast_or_null<NamespaceDecl>(FD->getDeclContext()))
2436 dyn_cast_or_null<RecordDecl>(FD->getDeclContext())) {
2441 TParamsArray = CollectFunctionTemplateParams(FD, Unit);
2493 CGDebugInfo::getFunctionForwardDeclaration(const FunctionDecl *FD) {
2497 SourceLocation Loc = FD->getLocation();
2502 collectFunctionDeclProps(FD, Unit, Name, LinkageName, DContext,
2506 for (const ParmVarDecl *Parm: FD->parameters())
2509 CGM.getContext().getFunctionType(FD->getReturnType(), ArgTypes,
2513 getOrCreateFunctionType(FD, FnType, Unit), !FD->isExternallyVisible(),
2515 TParamsArray.get(), getFunctionDeclaration(FD));
2516 const FunctionDecl *CanonDecl = cast<FunctionDecl>(FD->getCanonicalDecl());
2558 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
2559 return getFunctionForwardDeclaration(FD);
2570 const FunctionDecl *FD = dyn_cast<FunctionDecl>(D);
2571 if (!FD)
2577 auto MI = SPCache.find(FD->getCanonicalDecl());
2580 dyn_cast<CXXMethodDecl>(FD->getCanonicalDecl())) {
2591 for (auto NextFD : FD->redecls()) {
2652 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
2653 if (FD->isVariadic()) {
2655 EltTys.push_back(getOrCreateType(FD->getReturnType(), F));
2686 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
2688 auto FI = SPCache.find(FD->getCanonicalDecl());