diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-20 10:20:03 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-20 10:20:03 +0000 |
commit | 6bd23c083290ab0f68388397f213323f386fc36e (patch) | |
tree | 2cbb9ebf6a2ec100514b088ed04adf34cc146026 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | adfd32f8eefc804dce24d14450c10f592e643e2d (diff) |
Remove unneeded functor. LiveInterval has a < operator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 5fa725724a..4479ea76e3 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -179,16 +179,6 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { return true; } -namespace { - /// CompareIntervalStar - This is a simple comparison function for interval - /// pointers. It compares based on their starting point. - struct CompareIntervalStar { - bool operator()(LiveInterval *LHS, LiveInterval* RHS) const { - return LHS->start() < RHS->start(); - } - }; -} - std::vector<LiveInterval*> LiveIntervals::addIntervalsForSpills( const LiveInterval& li, VirtRegMap& vrm, @@ -282,7 +272,7 @@ std::vector<LiveInterval*> LiveIntervals::addIntervalsForSpills( // The proper way to fix this is to process all uses of the vreg before we // process any defs. However, this would require refactoring the above // blob of code, which I'm not feeling up to right now. - std::sort(added.begin(), added.end(), CompareIntervalStar()); + std::sort(added.begin(), added.end(), less_ptr<LiveInterval>()); return added; } |