Do not use a class before it is defined.

Be gcc 3.4 clean

llvm-svn: 9727
This commit is contained in:
Chris Lattner 2003-11-05 06:25:06 +00:00
parent b5b9ba6ff6
commit a9e7fe9ea2
1 changed files with 9 additions and 6 deletions

View File

@ -111,10 +111,7 @@ public:
inline bool operator!=(const _Self& x) const { return !operator==(x); }
inline _NodeType* operator*() const {
assert(cycleNum < S.groups.size());
return (*S.groups[cycleNum])[slotNum];
}
inline _NodeType* operator*() const;
inline _NodeType* operator->() const { return operator*(); }
_Self& operator++(); // Preincrement
@ -201,11 +198,17 @@ public: // accessor functions to query chosen schedule
}
private:
friend class iterator;
friend class const_iterator;
friend class ScheduleIterator<SchedGraphNode>;
friend class ScheduleIterator<const SchedGraphNode>;
/*ctor*/ InstrSchedule (); // Disable: DO NOT IMPLEMENT.
};
template<class NodeType>
inline NodeType *ScheduleIterator<NodeType>::operator*() const {
assert(cycleNum < S.groups.size());
return (*S.groups[cycleNum])[slotNum];
}
/*ctor*/
InstrSchedule::InstrSchedule(unsigned int _nslots, unsigned int _numNodes)