Lines Matching defs:OMD
452 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
453 bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext());
456 OMD->getClassInterface(),
518 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
520 SourceLocation StartLoc = OMD->getLocStart();
523 if (OMD->hasAttr<NoDebugAttr>())
526 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD);
528 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD);
529 CGM.SetInternalFunctionAttributes(OMD, Fn, FI);
531 args.push_back(OMD->getSelfDecl());
532 args.push_back(OMD->getCmdDecl());
534 args.append(OMD->param_begin(), OMD->param_end());
536 CurGD = OMD;
537 CurEHLocation = OMD->getLocEnd();
539 StartFunction(OMD, OMD->getReturnType(), Fn, FI, args,
540 OMD->getLocation(), StartLoc);
544 OMD->isInstanceMethod() &&
545 OMD->getSelector().isUnarySelector()) {
547 OMD->getSelector().getIdentifierInfoForSlot(0);
558 void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
559 StartObjCMethod(OMD, OMD->getClassInterface());
560 PGO.assignRegionCounters(GlobalDecl(OMD), CurFn);
561 assert(isa<CompoundStmt>(OMD->getBody()));
562 incrementProfileCounter(OMD->getBody());
563 EmitCompoundStmtWithoutScope(*cast<CompoundStmt>(OMD->getBody()));
564 FinishFunction(OMD->getBodyRBrace());
802 ObjCMethodDecl *OMD = PD->getGetterMethodDecl();
803 assert(OMD && "Invalid call to generate getter (empty method)");
804 StartObjCMethod(OMD, IMP->getClassInterface());
806 generateObjCGetterBody(IMP, PID, OMD, AtomicHelperFn);
1036 static void emitStructSetterCall(CodeGenFunction &CGF, ObjCMethodDecl *OMD,
1050 ParmVarDecl *argVar = *OMD->param_begin();
1081 ObjCMethodDecl *OMD,
1096 ParmVarDecl *argVar = *OMD->param_begin();
1332 ObjCMethodDecl *OMD = PD->getSetterMethodDecl();
1333 assert(OMD && "Invalid call to generate setter (empty method)");
1334 StartObjCMethod(OMD, IMP->getClassInterface());
1451 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
1452 ImplicitParamDecl *selfDecl = OMD->getSelfDecl();