mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-10 22:23:13 +01:00
Replace ArrayIter<> with Array<>::iterator.
Just use the new iterator instead of the old Java-like class. Also removes a dead iterator and replaces an iterator with a pointer in some place.
This commit is contained in:
@@ -315,12 +315,11 @@ std::vector<llvm::Type*> IrTypeClass::buildVtblType(Type* first, FuncDeclaration
|
||||
types.push_back(DtoType(first));
|
||||
|
||||
// then come the functions
|
||||
ArrayIter<FuncDeclaration> it(*vtbl_array);
|
||||
it.index = 1;
|
||||
|
||||
for (; !it.done(); it.next())
|
||||
for (FuncDeclarations::iterator I = vtbl_array->begin() + 1,
|
||||
E = vtbl_array->end();
|
||||
I != E; ++I)
|
||||
{
|
||||
FuncDeclaration* fd = it.get();
|
||||
FuncDeclaration* fd = *I;
|
||||
if (fd == NULL)
|
||||
{
|
||||
// FIXME
|
||||
|
||||
Reference in New Issue
Block a user