Просмотр исходного кода

Remove outdated comment about generic vtable inst naming (#5814)

Since vtables are generic over the class's specific, they don't have
their own generic/specific ids and so there's no generic insts that need
naming.
David Blaikie 9 месяцев назад
Родитель
Сommit
c2a0ee98c5
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      toolchain/sem_ir/inst_namer.cpp

+ 0 - 2
toolchain/sem_ir/inst_namer.cpp

@@ -134,8 +134,6 @@ InstNamer::InstNamer(const File* sem_ir) : sem_ir_(sem_ir) {
     GetScopeInfo(vtable_scope).name = globals_.AllocateName(
     GetScopeInfo(vtable_scope).name = globals_.AllocateName(
         *this, vtable_loc,
         *this, vtable_loc,
         sem_ir->names().GetIRBaseName(class_info.name_id).str() + ".vtable");
         sem_ir->names().GetIRBaseName(class_info.name_id).str() + ".vtable");
-    // TODO: Add support for generic vtables here and elsewhere.
-    // CollectNamesInGeneric(vtable_scope, vtable_info.generic_id);
   }
   }
 
 
   // Build each interface scope.
   // Build each interface scope.