Lines Matching refs:OMD

399     const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
400 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext());
403 OMD->getClassInterface(),
466 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
471 if (!OMD->hasAttr<NoDebugAttr>())
474 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD);
476 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD);
477 CGM.SetInternalFunctionAttributes(OMD, Fn, FI);
479 args.push_back(OMD->getSelfDecl());
480 args.push_back(OMD->getCmdDecl());
482 for (ObjCMethodDecl::param_const_iterator PI = OMD->param_begin(),
483 E = OMD->param_end(); PI != E; ++PI)
486 CurGD = OMD;
488 StartFunction(OMD, OMD->getResultType(), Fn, FI, args, StartLoc);
492 OMD->isInstanceMethod() &&
493 OMD->getSelector().isUnarySelector()) {
495 OMD->getSelector().getIdentifierInfoForSlot(0);
506 void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
507 StartObjCMethod(OMD, OMD->getClassInterface(), OMD->getLocStart());
508 EmitStmt(OMD->getBody());
509 FinishFunction(OMD->getBodyRBrace());
747 ObjCMethodDecl *OMD = PD->getGetterMethodDecl();
748 assert(OMD && "Invalid call to generate getter (empty method)");
749 StartObjCMethod(OMD, IMP->getClassInterface(), OMD->getLocStart());
751 generateObjCGetterBody(IMP, PID, OMD, AtomicHelperFn);
974 static void emitStructSetterCall(CodeGenFunction &CGF, ObjCMethodDecl *OMD,
988 ParmVarDecl *argVar = *OMD->param_begin();
1019 ObjCMethodDecl *OMD,
1034 ParmVarDecl *argVar = *OMD->param_begin();
1273 ObjCMethodDecl *OMD = PD->getSetterMethodDecl();
1274 assert(OMD && "Invalid call to generate setter (empty method)");
1275 StartObjCMethod(OMD, IMP->getClassInterface(), OMD->getLocStart());
1411 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
1412 ImplicitParamDecl *selfDecl = OMD->getSelfDecl();