| Index: src/IceTargetLowering.h
|
| diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
|
| index 1995124826d066cffd229671e1bc4066c58e9162..d08311d6c7d17b041da94c001b03fe2c919c2569 100644
|
| --- a/src/IceTargetLowering.h
|
| +++ b/src/IceTargetLowering.h
|
| @@ -52,6 +52,9 @@ public:
|
| bool atEnd() const { return Cur == End; }
|
| InstList::iterator getCur() const { return Cur; }
|
| InstList::iterator getEnd() const { return End; }
|
| + // Adaptor to enable range-based for loops.
|
| + InstList::iterator begin() const { return getCur(); }
|
| + InstList::iterator end() const { return getEnd(); }
|
| void insert(Inst *Inst);
|
| Inst *getLastInserted() const;
|
| void advanceCur() { Cur = Next; }
|
|
|