[deserialization] Add ClassDecl -> VTable map to SILModule.

Swift SVN r15545
This commit is contained in:
Michael Gottesman
2014-03-27 03:52:00 +00:00
parent fdaa10b94f
commit a571cd83f9
3 changed files with 15 additions and 0 deletions

View File

@@ -479,3 +479,11 @@ void SILModule::linkAllWitnessTables() {
void SILModule::linkAllVTables() {
SILLoader->getAllVTables();
}
SILVTable *SILModule::lookUpVTable(const ClassDecl *C) {
auto R = VTableLookupTable.find(C);
if (R == VTableLookupTable.end())
return nullptr;
return R->second;
}