@@ -4026,7 +4026,7 @@ class ClassDecl final : public NominalTypeDecl {
4026
4026
ClassDecl *getSuperclassDecl () const ;
4027
4027
4028
4028
// / Check if this class is a superclass or equal to the given class.
4029
- bool isSuperclassOf (ClassDecl *other) const ;
4029
+ bool isSuperclassOf (const ClassDecl *other) const ;
4030
4030
4031
4031
// / Set the superclass of this class.
4032
4032
void setSuperclass (Type superclass);
@@ -4121,7 +4121,7 @@ class ClassDecl final : public NominalTypeDecl {
4121
4121
4122
4122
// / Whether the class uses the ObjC object model (reference counting,
4123
4123
// / allocation, etc.), the Swift model, or has no reference counting at all.
4124
- ReferenceCounting getObjectModel () {
4124
+ ReferenceCounting getObjectModel () const {
4125
4125
if (isForeignReferenceType ())
4126
4126
return ReferenceCounting::None;
4127
4127
@@ -4131,7 +4131,7 @@ class ClassDecl final : public NominalTypeDecl {
4131
4131
return ReferenceCounting::Native;
4132
4132
}
4133
4133
4134
- LayoutConstraintKind getLayoutConstraintKind () {
4134
+ LayoutConstraintKind getLayoutConstraintKind () const {
4135
4135
if (getObjectModel () == ReferenceCounting::ObjC)
4136
4136
return LayoutConstraintKind::Class;
4137
4137
@@ -4261,7 +4261,7 @@ class ClassDecl final : public NominalTypeDecl {
4261
4261
// / Used to determine if this class decl is a foriegn reference type. I.e., a
4262
4262
// / non-reference-counted swift reference type that was imported from a C++
4263
4263
// / record.
4264
- bool isForeignReferenceType ();
4264
+ bool isForeignReferenceType () const ;
4265
4265
};
4266
4266
4267
4267
// / The set of known protocols for which derived conformances are supported.
0 commit comments