diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-21 18:34:17 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-21 18:34:17 +0000 |
commit | f7a8e93b76010b5715671324afb519d8418d381a (patch) | |
tree | 8e3ac2e24d487a7fffec2bc3231615c9f292f04f /llvm/lib | |
parent | cb75021034fdeb7e59a3b995eba2f66e5118a785 (diff) | |
download | bcm5719-llvm-f7a8e93b76010b5715671324afb519d8418d381a.tar.gz bcm5719-llvm-f7a8e93b76010b5715671324afb519d8418d381a.zip |
Don't pollute the global namespace.
llvm-svn: 114459
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 199e5000b60..fd5fe787b6b 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -31,6 +31,7 @@ using namespace llvm; // CompEnd - Compare LiveRange end to Pos. +namespace { struct CompEnd { bool operator()(SlotIndex Pos, const LiveRange &LR) const { return Pos < LR.end; @@ -39,6 +40,7 @@ struct CompEnd { return LR.end < Pos; } }; +} LiveInterval::iterator LiveInterval::find(SlotIndex Pos) { return std::upper_bound(begin(), end(), Pos, CompEnd()); |