diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-09 18:42:46 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-09 18:42:46 +0000 |
commit | 2e1cbb735df84cd22cc6d77eb170ba7c929f941d (patch) | |
tree | e34d441c57bcd5274e0922f84f7642e54ebce090 /llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp | |
parent | 312e3a28d25c73c29a81322ccab169a0846c313e (diff) | |
download | bcm5719-llvm-2e1cbb735df84cd22cc6d77eb170ba7c929f941d.tar.gz bcm5719-llvm-2e1cbb735df84cd22cc6d77eb170ba7c929f941d.zip |
Move InstrSchedule's iterator begin/end methods inline.
llvm-svn: 11239
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp')
-rw-r--r-- | llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp index 4e2bf478763..9cec481ab0b 100644 --- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -149,10 +149,10 @@ public: // iterators typedef ScheduleIterator<SchedGraphNode> iterator; typedef ScheduleIterator<const SchedGraphNode> const_iterator; - iterator begin(); - const_iterator begin() const; - iterator end(); - const_iterator end() const; + iterator begin() { return iterator::begin(*this); } + const_iterator begin() const { return const_iterator::begin(*this); } + iterator end() { return iterator::end(*this); } + const_iterator end() const { return const_iterator::end(*this); } public: // constructors and destructor /*ctor*/ InstrSchedule (unsigned int _nslots, @@ -280,30 +280,6 @@ ScheduleIterator<_NodeType>::end(const InstrSchedule& _schedule) return _Self(_schedule, _schedule.groups.size(), 0); } -InstrSchedule::iterator -InstrSchedule::begin() -{ - return iterator::begin(*this); -} - -InstrSchedule::const_iterator -InstrSchedule::begin() const -{ - return const_iterator::begin(*this); -} - -InstrSchedule::iterator -InstrSchedule::end() -{ - return iterator::end(*this); -} - -InstrSchedule::const_iterator -InstrSchedule::end() const -{ - return const_iterator::end( *this); -} - //---------------------------------------------------------------------- // class DelaySlotInfo: |