Exemplo n.º 1
0
SILFunction *
SILVTable::getImplementation(SILModule &M, SILDeclRef method) const {
  SILDeclRef m = method;
  do {
    auto entry = M.VTableEntryCache.find({this, m});
    if (entry != M.VTableEntryCache.end()) {
      return (*entry).second;
    }
  } while ((m = m.getOverridden()));
  return nullptr;
}