@@ -106,9 +106,9 @@ class ASTContext : public RefCountedBase<ASTContext> {
106
106
mutable llvm::FoldingSet<DependentSizedExtVectorType>
107
107
DependentSizedExtVectorTypes;
108
108
mutable llvm::FoldingSet<VectorType> VectorTypes;
109
- mutable llvm::FoldingSet<FunctionNoProtoType> FunctionNoProtoTypes ;
110
- mutable llvm::ContextualFoldingSet<FunctionProtoType , ASTContext&>
111
- FunctionProtoTypes ;
109
+ mutable llvm::FoldingSet<SubprogramNoProtoType> SubprogramNoProtoTypes ;
110
+ mutable llvm::ContextualFoldingSet<SubprogramProtoType , ASTContext&>
111
+ SubprogramProtoTypes ;
112
112
mutable llvm::FoldingSet<DependentTypeOfExprType> DependentTypeOfExprTypes;
113
113
mutable llvm::FoldingSet<DependentDecltypeType> DependentDecltypeTypes;
114
114
mutable llvm::FoldingSet<TemplateTypeParmType> TemplateTypeParmTypes;
@@ -160,7 +160,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
160
160
mutable TypeInfoMap MemoizedTypeInfo;
161
161
162
162
// / \brief A cache mapping from CXXRecordDecls to key functions.
163
- llvm::DenseMap<const CXXRecordDecl*, const CXXMethodDecl*> KeyFunctions ;
163
+ llvm::DenseMap<const CXXRecordDecl*, const CXXMethodDecl*> KeySubprograms ;
164
164
165
165
// / \brief Mapping from ObjCContainers to their ObjCImplementations.
166
166
llvm::DenseMap<ObjCContainerDecl*, ObjCImplDecl*> ObjCImpls;
@@ -174,7 +174,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
174
174
175
175
// / \brief Mapping from class scope functions specialization to their
176
176
// / template patterns.
177
- llvm::DenseMap<const FunctionDecl *, FunctionDecl *>
177
+ llvm::DenseMap<const SubprogramDecl *, SubprogramDecl *>
178
178
ClassScopeSpecializationPattern;
179
179
180
180
// / \brief Representation of a "canonical" template template parameter that
@@ -265,7 +265,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
265
265
mutable RecordDecl *BlockDescriptorExtendedType;
266
266
267
267
// / \brief Declaration for the CUDA cudaConfigureCall function.
268
- FunctionDecl *cudaConfigureCallDecl;
268
+ SubprogramDecl *cudaConfigureCallDecl;
269
269
270
270
TypeSourceInfo NullTypeSourceInfo;
271
271
@@ -566,10 +566,10 @@ class ASTContext : public RefCountedBase<ASTContext> {
566
566
MemberSpecializationInfo *getInstantiatedFromStaticDataMember (
567
567
const VarDecl *Var);
568
568
569
- FunctionDecl *getClassScopeSpecializationPattern (const FunctionDecl *FD);
569
+ SubprogramDecl *getClassScopeSpecializationPattern (const SubprogramDecl *FD);
570
570
571
- void setClassScopeSpecializationPattern (FunctionDecl *FD,
572
- FunctionDecl *Pattern);
571
+ void setClassScopeSpecializationPattern (SubprogramDecl *FD,
572
+ SubprogramDecl *Pattern);
573
573
574
574
// / \brief Note that the static data member \p Inst is an instantiation of
575
575
// / the static data member template \p Tmpl of a class template.
@@ -825,8 +825,8 @@ class ASTContext : public RefCountedBase<ASTContext> {
825
825
QualType getConstType (QualType T) const { return T.withConst (); }
826
826
827
827
// / \brief Change the ExtInfo on a function type.
828
- const FunctionType * adjustFunctionType (const FunctionType *Fn,
829
- FunctionType ::ExtInfo EInfo);
828
+ const SubprogramType * adjustSubprogramType (const SubprogramType *Fn,
829
+ SubprogramType ::ExtInfo EInfo);
830
830
831
831
// / \brief Return the uniqued reference to the type for a complex
832
832
// / number with the specified element type.
@@ -858,10 +858,10 @@ class ASTContext : public RefCountedBase<ASTContext> {
858
858
// / pointer to blocks.
859
859
QualType getBlockDescriptorExtendedType () const ;
860
860
861
- void setcudaConfigureCallDecl (FunctionDecl *FD) {
861
+ void setcudaConfigureCallDecl (SubprogramDecl *FD) {
862
862
cudaConfigureCallDecl = FD;
863
863
}
864
- FunctionDecl *getcudaConfigureCallDecl () {
864
+ SubprogramDecl *getcudaConfigureCallDecl () {
865
865
return cudaConfigureCallDecl;
866
866
}
867
867
@@ -946,17 +946,17 @@ class ASTContext : public RefCountedBase<ASTContext> {
946
946
SourceLocation AttrLoc) const ;
947
947
948
948
// / \brief Return a K&R style C function type like 'int()'.
949
- QualType getFunctionNoProtoType (QualType ResultTy,
950
- const FunctionType ::ExtInfo &Info) const ;
949
+ QualType getSubprogramNoProtoType (QualType ResultTy,
950
+ const SubprogramType ::ExtInfo &Info) const ;
951
951
952
- QualType getFunctionNoProtoType (QualType ResultTy) const {
953
- return getFunctionNoProtoType (ResultTy, FunctionType ::ExtInfo ());
952
+ QualType getSubprogramNoProtoType (QualType ResultTy) const {
953
+ return getSubprogramNoProtoType (ResultTy, SubprogramType ::ExtInfo ());
954
954
}
955
955
956
956
// / \brief Return a normal function type with a typed argument list.
957
- QualType getFunctionType (QualType ResultTy,
957
+ QualType getSubprogramType (QualType ResultTy,
958
958
const QualType *Args, unsigned NumArgs,
959
- const FunctionProtoType ::ExtProtoInfo &EPI) const ;
959
+ const SubprogramProtoType ::ExtProtoInfo &EPI) const ;
960
960
961
961
// / \brief Return the unique reference to the type for the specified type
962
962
// / declaration.
@@ -1265,7 +1265,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
1265
1265
// /
1266
1266
// / \returns true if an error occurred (e.g., because one of the parameter
1267
1267
// / types is incomplete), false otherwise.
1268
- bool getObjCEncodingForFunctionDecl (const FunctionDecl *Decl, std::string& S);
1268
+ bool getObjCEncodingForSubprogramDecl (const SubprogramDecl *Decl, std::string& S);
1269
1269
1270
1270
// / \brief Emit the encoded type for the method declaration \p Decl into
1271
1271
// / \p S.
@@ -1569,7 +1569,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
1569
1569
// /
1570
1570
// / ...the first non-pure virtual function that is not inline at the point
1571
1571
// / of class definition.
1572
- const CXXMethodDecl *getKeyFunction (const CXXRecordDecl *RD);
1572
+ const CXXMethodDecl *getKeySubprogram (const CXXRecordDecl *RD);
1573
1573
1574
1574
// / Get the offset of a FieldDecl or IndirectFieldDecl, in bits.
1575
1575
uint64_t getFieldOffset (const ValueDecl *FD) const ;
@@ -1863,12 +1863,12 @@ class ASTContext : public RefCountedBase<ASTContext> {
1863
1863
const ObjCObjectPointerType *RHSOPT);
1864
1864
bool canBindObjCObjectType (QualType To, QualType From);
1865
1865
1866
- // Functions for calculating composite types
1866
+ // Subprograms for calculating composite types
1867
1867
QualType mergeTypes (QualType, QualType, bool OfBlockPointer=false ,
1868
1868
bool Unqualified = false , bool BlockReturnType = false );
1869
- QualType mergeFunctionTypes (QualType, QualType, bool OfBlockPointer=false ,
1869
+ QualType mergeSubprogramTypes (QualType, QualType, bool OfBlockPointer=false ,
1870
1870
bool Unqualified = false );
1871
- QualType mergeFunctionArgumentTypes (QualType, QualType,
1871
+ QualType mergeSubprogramArgumentTypes (QualType, QualType,
1872
1872
bool OfBlockPointer=false ,
1873
1873
bool Unqualified = false );
1874
1874
QualType mergeTransparentUnionType (QualType, QualType,
@@ -1877,9 +1877,9 @@ class ASTContext : public RefCountedBase<ASTContext> {
1877
1877
1878
1878
QualType mergeObjCGCQualifiers (QualType, QualType);
1879
1879
1880
- bool FunctionTypesMatchOnNSConsumedAttrs (
1881
- const FunctionProtoType *FromFunctionType ,
1882
- const FunctionProtoType *ToFunctionType );
1880
+ bool SubprogramTypesMatchOnNSConsumedAttrs (
1881
+ const SubprogramProtoType *FromSubprogramType ,
1882
+ const SubprogramProtoType *ToSubprogramType );
1883
1883
1884
1884
void ResetObjCLayout (const ObjCContainerDecl *CD) {
1885
1885
ObjCLayouts[CD] = 0 ;
@@ -1999,7 +1999,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
1999
1999
// / when it is called.
2000
2000
void AddDeallocation (void (*Callback)(void *), void *Data);
2001
2001
2002
- GVALinkage GetGVALinkageForFunction (const FunctionDecl *FD);
2002
+ GVALinkage GetGVALinkageForSubprogram (const SubprogramDecl *FD);
2003
2003
GVALinkage GetGVALinkageForVariable (const VarDecl *VD);
2004
2004
2005
2005
// / \brief Determines if the decl can be CodeGen'ed or deserialized from PCH
0 commit comments