diff options
author | Chris Lattner <sabre@nondot.org> | 2004-09-30 15:59:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-09-30 15:59:17 +0000 |
commit | 70ca358b7d540b6061236ddf757085042873c12c (patch) | |
tree | c420c8ded39f2b00ba7b58be6ce46b32265a850a /include | |
parent | d7bf501cc732f8ddcc30a6bd68d2fdbfe0f2145f (diff) | |
download | external_llvm-70ca358b7d540b6061236ddf757085042873c12c.zip external_llvm-70ca358b7d540b6061236ddf757085042873c12c.tar.gz external_llvm-70ca358b7d540b6061236ddf757085042873c12c.tar.bz2 |
* Wrap some comments to 80 cols
* Add const_iterator stuff
* Add a print method, which means that I can now call dump() from the
debugger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index b90be62..036ca13 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/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(); |