@@ -220,7 +220,7 @@ enum class ConventionsKind : uint8_t {
220
220
ObjCMethod = 2 ,
221
221
CFunctionType = 3 ,
222
222
CFunction = 4 ,
223
- SelectorFamily = 5 ,
223
+ ObjCSelectorFamily = 5 ,
224
224
Deallocator = 6 ,
225
225
Capture = 7 ,
226
226
};
@@ -1714,7 +1714,7 @@ static const clang::Decl *findClangMethod(ValueDecl *method) {
1714
1714
// / Note that this will never derive the Init family, which is too dangerous
1715
1715
// / to leave to chance. Swift functions starting with "init" are always
1716
1716
// / emitted as if they are part of the "none" family.
1717
- static ObjCSelectorFamily getSelectorFamily (ObjCSelector name) {
1717
+ static ObjCSelectorFamily getObjCSelectorFamily (ObjCSelector name) {
1718
1718
auto result = name.getSelectorFamily ();
1719
1719
1720
1720
if (result == ObjCSelectorFamily::Init)
@@ -1724,7 +1724,7 @@ static ObjCSelectorFamily getSelectorFamily(ObjCSelector name) {
1724
1724
}
1725
1725
1726
1726
// / Get the ObjC selector family a foreign SILDeclRef belongs to.
1727
- static ObjCSelectorFamily getSelectorFamily (SILDeclRef c) {
1727
+ static ObjCSelectorFamily getObjCSelectorFamily (SILDeclRef c) {
1728
1728
assert (c.isForeign );
1729
1729
switch (c.kind ) {
1730
1730
case SILDeclRef::Kind::Func: {
@@ -1745,7 +1745,7 @@ static ObjCSelectorFamily getSelectorFamily(SILDeclRef c) {
1745
1745
}
1746
1746
}
1747
1747
1748
- return getSelectorFamily (FD->getObjCSelector ());
1748
+ return getObjCSelectorFamily (FD->getObjCSelector ());
1749
1749
}
1750
1750
case SILDeclRef::Kind::Initializer:
1751
1751
case SILDeclRef::Kind::IVarInitializer:
@@ -1772,12 +1772,12 @@ static ObjCSelectorFamily getSelectorFamily(SILDeclRef c) {
1772
1772
1773
1773
namespace {
1774
1774
1775
- class SelectorFamilyConventions : public Conventions {
1775
+ class ObjCSelectorFamilyConventions : public Conventions {
1776
1776
ObjCSelectorFamily Family;
1777
1777
1778
1778
public:
1779
- SelectorFamilyConventions (ObjCSelectorFamily family)
1780
- : Conventions(ConventionsKind::SelectorFamily ), Family(family) {}
1779
+ ObjCSelectorFamilyConventions (ObjCSelectorFamily family)
1780
+ : Conventions(ConventionsKind::ObjCSelectorFamily ), Family(family) {}
1781
1781
1782
1782
ParameterConvention getIndirectParameter (unsigned index,
1783
1783
const AbstractionPattern &type,
@@ -1834,21 +1834,21 @@ class SelectorFamilyConventions : public Conventions {
1834
1834
}
1835
1835
1836
1836
static bool classof (const Conventions *C) {
1837
- return C->getKind () == ConventionsKind::SelectorFamily ;
1837
+ return C->getKind () == ConventionsKind::ObjCSelectorFamily ;
1838
1838
}
1839
1839
};
1840
1840
1841
1841
} // end anonymous namespace
1842
1842
1843
1843
static CanSILFunctionType
1844
- getSILFunctionTypeForSelectorFamily (SILModule &M, ObjCSelectorFamily family,
1845
- CanAnyFunctionType origType,
1846
- CanAnyFunctionType substInterfaceType,
1847
- AnyFunctionType::ExtInfo extInfo,
1848
- const ForeignInfo &foreignInfo,
1849
- Optional<SILDeclRef> constant) {
1844
+ getSILFunctionTypeForObjCSelectorFamily (SILModule &M, ObjCSelectorFamily family,
1845
+ CanAnyFunctionType origType,
1846
+ CanAnyFunctionType substInterfaceType,
1847
+ AnyFunctionType::ExtInfo extInfo,
1848
+ const ForeignInfo &foreignInfo,
1849
+ Optional<SILDeclRef> constant) {
1850
1850
return getSILFunctionType (M, AbstractionPattern (origType), substInterfaceType,
1851
- extInfo, SelectorFamilyConventions (family),
1851
+ extInfo, ObjCSelectorFamilyConventions (family),
1852
1852
foreignInfo, constant, constant,
1853
1853
/* requirement subs*/ None,
1854
1854
/* witnessMethodConformance=*/ None);
@@ -1929,10 +1929,10 @@ getUncachedSILFunctionTypeForConstant(SILModule &M,
1929
1929
1930
1930
// If the decl belongs to an ObjC method family, use that family's
1931
1931
// ownership conventions.
1932
- return getSILFunctionTypeForSelectorFamily (M, getSelectorFamily (constant),
1933
- origLoweredInterfaceType ,
1934
- origLoweredInterfaceType,
1935
- extInfo, foreignInfo, constant);
1932
+ return getSILFunctionTypeForObjCSelectorFamily (
1933
+ M, getObjCSelectorFamily (constant) ,
1934
+ origLoweredInterfaceType, origLoweredInterfaceType,
1935
+ extInfo, foreignInfo, constant);
1936
1936
}
1937
1937
1938
1938
CanSILFunctionType TypeConverter::
0 commit comments