Implement polymorphic inline caches.

Swift SVN r20740
This commit is contained in:
Nadav Rotem
2014-07-30 07:43:47 +00:00
parent a643754644
commit 0cb8bf0ab8
6 changed files with 106 additions and 29 deletions

View File

@@ -44,6 +44,10 @@ public:
}
}
/// \brief Collect all of the known direct subclasses of a class \p C in the
/// current module.
void collectSubClasses(ClassDecl *C, std::vector<ClassDecl*> &Sub);
/// \returns True if the class is inherited by another class in this module.
bool inheritedInModule(ClassDecl *CD) {
return InheritedClasses.count(CD);