Lines Matching defs:OMD
598 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
605 const ObjCMethodDecl *OMD,
1911 auto addIfExists = [&](const ObjCMethodDecl *OMD) {
1912 if (OMD && OMD->hasBody())
1913 InstanceMethods.push_back(OMD);
2026 const ObjCMethodDecl *OMD,
2030 auto selfAddr = CGF.GetAddrOfLocalVar(OMD->getSelfDecl());
2050 if (OMD->isClassMethod()) {
2077 auto retTy = OMD->getReturnType();
2090 if (OMD->isClassMethod()) {
2117 if (OMD->getCmdDecl()->isUsed()) {
2120 CGF.EmitVarDecl(*OMD->getCmdDecl());
2121 Builder.CreateStore(GetSelector(CGF, OMD),
2122 CGF.GetAddrOfLocalVar(OMD->getCmdDecl()));
3036 for (const auto *OMD : Methods) {
3038 TheModule.getFunction(getSymbolNameForMethod(OMD));
3043 Method.add(GetConstantSelector(OMD->getSelector(),
3044 Context.getObjCEncodingForMethodDecl(OMD)));
3045 Method.add(MakeConstantString(Context.getObjCEncodingForMethodDecl(OMD, true)));
3047 Method.add(MakeConstantString(OMD->getSelector().getAsString()));
3048 Method.add(MakeConstantString(Context.getObjCEncodingForMethodDecl(OMD)));
4057 llvm::Function *CGObjCGNU::GenerateMethod(const ObjCMethodDecl *OMD,
4061 Types.GetFunctionType(Types.arrangeObjCMethodDeclaration(OMD));
4063 bool isDirect = OMD->isDirectMethod();
4065 getSymbolNameForMethod(OMD, /*include category*/ !isDirect);
4072 auto *COMD = OMD->getCanonicalDecl();
4093 if (!OMD->getBody() || COMD->getReturnType() == OMD->getReturnType())
4110 const ObjCMethodDecl *OMD,