[AST] Move getEffectiveAccess calls into SIL.

This commit is contained in:
Huon Wilson
2017-06-19 17:46:45 -07:00
parent 3ac4cec148
commit a0bc3bd0b6
9 changed files with 63 additions and 34 deletions

View File

@@ -398,13 +398,6 @@ public:
return ContextAndInvalid.getPointer().dyn_cast<AbstractStorageDecl *>();
}
bool isSerialized() const {
auto *nominal = getType()->getAnyNominal();
return nominal->hasFixedLayout() &&
getProtocol()->getEffectiveAccess() >= Accessibility::Public &&
nominal->getEffectiveAccess() >= Accessibility::Public;
}
/// Retrieve the type witness and type decl (if one exists)
/// for the given associated type.
std::pair<Type, TypeDecl *>