Lines Matching defs:Method
1013 /// routine to get a method type which includes "this" pointer.
1015 CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method,
1017 const FunctionProtoType *Func = Method->getType()->getAs<FunctionProtoType>();
1018 if (Method->isStatic())
1021 return getOrCreateInstanceMethodType(Method->getThisType(CGM.getContext()),
1091 CGDebugInfo::CreateCXXMemberFunction(const CXXMethodDecl *Method,
1094 isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method);
1096 StringRef MethodName = getFunctionName(Method);
1097 llvm::MDSubroutineType *MethodTy = getOrCreateMethodType(Method, Unit);
1102 if (!IsCtorOrDtor && !isFunctionLocalClass(Method->getParent()))
1103 MethodLinkageName = CGM.getMangledName(Method);
1105 // Get the location for the method.
1108 if (!Method->isImplicit()) {
1109 MethodDefUnit = getOrCreateFile(Method->getLocation());
1110 MethodLine = getLineNumber(Method->getLocation());
1113 // Collect virtual method info.
1118 if (Method->isVirtual()) {
1119 if (Method->isPure())
1129 if (!isa<CXXDestructorDecl>(Method) &&
1131 VIndex = CGM.getItaniumVTableContext().getMethodVTableIndex(Method);
1136 if (Method->isImplicit())
1138 Flags |= getAccessFlag(Method->getAccess(), Method->getParent());
1139 if (const CXXConstructorDecl *CXXC = dyn_cast<CXXConstructorDecl>(Method)) {
1143 dyn_cast<CXXConversionDecl>(Method)) {
1147 if (Method->hasPrototype())
1149 if (Method->getRefQualifier() == RQ_LValue)
1151 if (Method->getRefQualifier() == RQ_RValue)
1154 llvm::DIArray TParamsArray = CollectFunctionTemplateParams(Method, Unit);
1161 SPCache[Method->getCanonicalDecl()].reset(SP);
1177 const auto *Method = dyn_cast<CXXMethodDecl>(I);
1187 if (!Method || Method->isImplicit())
1190 if (Method->getType()->getAs<FunctionProtoType>()->getContainedAutoType())
1199 auto MI = SPCache.find(Method->getCanonicalDecl());
1201 ? CreateCXXMemberFunction(Method, Unit, RecordTy)
2463 /// getFunctionDeclaration - Return debug info descriptor to describe method
2464 /// declaration for the given method definition.
2503 // getOrCreateFunctionType - Construct DIType. If it is a c++ method, include
2516 if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(D))
2517 return getOrCreateMethodType(Method, F);
3100 const CXXMethodDecl *method =
3102 QualType type = method->getThisType(C);