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 | f616d8328ce7e67d75551520356b32d428c9d338 (patch) | |
tree | cdd1da542b46fbb1c8ce13d13b3bef28d511a88f /llvm/lib/CodeGen/LiveIntervals.cpp | |
parent | 45b50d14c94465b7d8c0b5e1d5672dd2feaec72e (diff) | |
download | bcm5719-llvm-f616d8328ce7e67d75551520356b32d428c9d338.tar.gz bcm5719-llvm-f616d8328ce7e67d75551520356b32d428c9d338.zip |
Remove unneeded functor. LiveInterval has a < operator.
llvm-svn: 15031
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervals.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervals.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp index 5fa725724ac..4479ea76e3d 100644 --- a/llvm/lib/CodeGen/LiveIntervals.cpp +++ b/llvm/lib/CodeGen/LiveIntervals.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; } |