mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] NFC: Simplify SILVTable and save 8 bytes per SILVTable
We were not using the primary benefits of an intrusive list, namely the ability to insert or remove from the middle of the list, so let's switch to a plain vector. This also avoids linked-list pointer chasing.
This commit is contained in:
@@ -23,8 +23,8 @@ void ClassHierarchyAnalysis::init() {
|
||||
auto module = M->getSwiftModule();
|
||||
|
||||
// For each class declaration in our V-table list:
|
||||
for (auto &VT : M->getVTableList()) {
|
||||
ClassDecl *C = VT.getClass();
|
||||
for (auto &VT : M->getVTables()) {
|
||||
ClassDecl *C = VT->getClass();
|
||||
|
||||
while (true) {
|
||||
// Ignore classes that are at the top of the class hierarchy:
|
||||
|
||||
Reference in New Issue
Block a user