mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Don't pollute the global namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2de0e808c1
commit
89bfef003e
@ -31,6 +31,7 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
// CompEnd - Compare LiveRange end to Pos.
|
// CompEnd - Compare LiveRange end to Pos.
|
||||||
|
namespace {
|
||||||
struct CompEnd {
|
struct CompEnd {
|
||||||
bool operator()(SlotIndex Pos, const LiveRange &LR) const {
|
bool operator()(SlotIndex Pos, const LiveRange &LR) const {
|
||||||
return Pos < LR.end;
|
return Pos < LR.end;
|
||||||
@ -39,6 +40,7 @@ struct CompEnd {
|
|||||||
return LR.end < Pos;
|
return LR.end < Pos;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
LiveInterval::iterator LiveInterval::find(SlotIndex Pos) {
|
LiveInterval::iterator LiveInterval::find(SlotIndex Pos) {
|
||||||
return std::upper_bound(begin(), end(), Pos, CompEnd());
|
return std::upper_bound(begin(), end(), Pos, CompEnd());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user