Lines Matching refs:MD
60 static CanQual<FunctionProtoType> GetFormalType(const CXXMethodDecl *MD) {
61 return MD->getType()->getCanonicalTypeUnqualified()
184 CodeGenTypes::arrangeCXXMethodDeclaration(const CXXMethodDecl *MD) {
185 assert(!isa<CXXConstructorDecl>(MD) && "wrong method for contructors!");
186 assert(!isa<CXXDestructorDecl>(MD) && "wrong method for destructors!");
188 CanQual<FunctionProtoType> prototype = GetFormalType(MD);
190 if (MD->isInstance()) {
192 return arrangeCXXMethodType(MD->getParent(), prototype.getTypePtr());
248 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD))
249 if (MD->isInstance())
250 return arrangeCXXMethodDeclaration(MD);
273 CodeGenTypes::arrangeObjCMethodDeclaration(const ObjCMethodDecl *MD) {
276 return arrangeObjCMessageSendSignature(MD, MD->getSelfDecl()->getType());
286 CodeGenTypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD,
292 for (ObjCMethodDecl::param_const_iterator i = MD->param_begin(),
293 e = MD->param_end(); i != e; ++i) {
298 einfo = einfo.withCallingConv(getCallingConventionForDecl(MD));
301 MD->hasAttr<NSReturnsRetainedAttr>())
305 (MD->isVariadic() ? RequiredArgs(argTys.size()) : RequiredArgs::All);
307 return arrangeLLVMFunctionInfo(GetReturnType(MD->getResultType()), argTys,
956 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
957 const FunctionProtoType *FPT = MD->getType()->getAs<FunctionProtoType>();
963 if (isa<CXXDestructorDecl>(MD))
964 Info = &arrangeCXXDestructor(cast<CXXDestructorDecl>(MD), GD.getDtorType());
966 Info = &arrangeCXXMethodDeclaration(MD);
998 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(Fn);
999 if (Fn->isNoReturn() && !(AttrOnCallSite && MD && MD->isVirtual()))