[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

@@ -32,6 +32,7 @@ SILVTable *SILVTable::create(SILModule &M, ClassDecl *Class,
alignof(SILVTable));
SILVTable *vt = ::new (buf) SILVTable(Class, Entries);
M.vtables.push_back(vt);
M.VTableLookupTable[Class] = vt;
return vt;
}