mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[deserialization] Add ClassDecl -> VTable map to SILModule.
Swift SVN r15545
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user