mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-09 16:33:14 +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:
@@ -21,7 +21,6 @@
|
||||
#include "gen/logger.h"
|
||||
#include "gen/structs.h"
|
||||
#include "gen/tollvm.h"
|
||||
#include "gen/utils.h"
|
||||
#include "ir/iraggr.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
@@ -58,9 +57,11 @@ void DtoResolveStruct(StructDeclaration* sd, Loc& callerLoc)
|
||||
sd->ir.irAggr = iraggr;
|
||||
|
||||
// Set up our field metadata.
|
||||
for (ArrayIter<VarDeclaration> it(sd->fields); !it.done(); it.next())
|
||||
for (VarDeclarations::iterator I = sd->fields.begin(),
|
||||
E = sd->fields.end();
|
||||
I != E; ++I)
|
||||
{
|
||||
VarDeclaration* vd = it.get();
|
||||
VarDeclaration *vd = *I;
|
||||
assert(!vd->ir.irField);
|
||||
(void)new IrField(vd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user