diff options
author | Roman Levenstein <romix.llvm@googlemail.com> | 2008-02-18 09:35:30 +0000 |
---|---|---|
committer | Roman Levenstein <romix.llvm@googlemail.com> | 2008-02-18 09:35:30 +0000 |
commit | 7b197ee2b5ab508b1d3e800ba04f0aabd1757608 (patch) | |
tree | 608e0fc82961a393705e4a57814ac64b9c9947a4 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 282dd32458a4387a91b1a2a412d48e44436036db (diff) | |
download | external_llvm-7b197ee2b5ab508b1d3e800ba04f0aabd1757608.zip external_llvm-7b197ee2b5ab508b1d3e800ba04f0aabd1757608.tar.gz external_llvm-7b197ee2b5ab508b1d3e800ba04f0aabd1757608.tar.bz2 |
New helper function getMBBFromIndex() that given an index in any instruction of an MBB returns a pointer the MBB. Reviewed by Evan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index a64bf60..db9cfee 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -79,22 +79,6 @@ void LiveIntervals::releaseMemory() { delete ClonedMIs[i]; } -namespace llvm { - inline bool operator<(unsigned V, const IdxMBBPair &IM) { - return V < IM.first; - } - - inline bool operator<(const IdxMBBPair &IM, unsigned V) { - return IM.first < V; - } - - struct Idx2MBBCompare { - bool operator()(const IdxMBBPair &LHS, const IdxMBBPair &RHS) const { - return LHS.first < RHS.first; - } - }; -} - /// runOnMachineFunction - Register allocate the whole function /// bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { |