mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Implement polymorphic inline caches.
Swift SVN r20740
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user