projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2de0e80
)
Don't pollute the global namespace.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 21 Sep 2010 18:34:17 +0000
(18:34 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 21 Sep 2010 18:34:17 +0000
(18:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114459
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveInterval.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveInterval.cpp
b/lib/CodeGen/LiveInterval.cpp
index 199e5000b60e7f941a380f61628a748f5f49c9e7..fd5fe787b6bf07c6ce43970b99e3ae2de0803397 100644
(file)
--- a/
lib/CodeGen/LiveInterval.cpp
+++ b/
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());