Skip to content

Commit 00d7a3b

Browse files
committed
[embedded] Drop unnecessary eraseAllVTables() code
1 parent 70781b2 commit 00d7a3b

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

include/swift/SIL/SILModule.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -839,9 +839,6 @@ class SILModule {
839839
/// Look up a specialized VTable
840840
SILVTable *lookUpSpecializedVTable(SILType classTy);
841841

842-
/// Remove all VTables and specialized VTables from the module.
843-
void eraseAllVTables();
844-
845842
/// Attempt to lookup the function corresponding to \p Member in the class
846843
/// hierarchy of \p Class.
847844
SILFunction *lookUpFunctionInVTable(ClassDecl *Class, SILDeclRef Member);

lib/SIL/IR/SILModule.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -484,16 +484,6 @@ SILVTable *SILModule::lookUpVTable(const ClassDecl *C,
484484
return Vtbl;
485485
}
486486

487-
void SILModule::eraseAllVTables() {
488-
for (auto vt : vtables)
489-
vt->~SILVTable();
490-
491-
VTableMap.clear();
492-
SpecializedVTableMap.clear();
493-
vtables.clear();
494-
VTableEntryCache.clear();
495-
}
496-
497487
SILMoveOnlyDeinit *SILModule::lookUpMoveOnlyDeinit(const NominalTypeDecl *C,
498488
bool deserializeLazily) {
499489
if (!C)

0 commit comments

Comments
 (0)