diff options
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.h')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.h b/llvm/lib/CodeGen/LiveIntervalAnalysis.h index b90be627041..036ca132d22 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.h +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.h @@ -81,8 +81,10 @@ namespace llvm { return getBaseIndex(index) + InstrSlots::STORE; } - // FIXME: this should really be a const_iterator typedef Reg2IntervalMap::iterator iterator; + typedef Reg2IntervalMap::const_iterator const_iterator; + const_iterator begin() const { return r2iMap_.begin(); } + const_iterator end() const { return r2iMap_.end(); } iterator begin() { return r2iMap_.begin(); } iterator end() { return r2iMap_.end(); } unsigned getNumIntervals() const { return r2iMap_.size(); } @@ -125,6 +127,9 @@ namespace llvm { /// runOnMachineFunction - pass entry point virtual bool runOnMachineFunction(MachineFunction&); + /// print - Implement the dump method. + virtual void print(std::ostream &O) const; + private: /// computeIntervals - compute live intervals void computeIntervals(); |

