OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e4a41
)
Move RemoveFromVector out of the global namespace.
author
Dan Gohman
<gohman@apple.com>
Wed, 14 May 2008 01:02:49 +0000
(
01:02
+0000)
committer
Dan Gohman
<gohman@apple.com>
Wed, 14 May 2008 01:02:49 +0000
(
01:02
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51090
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/LoopInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/LoopInfo.h
b/include/llvm/Analysis/LoopInfo.h
index
e3e2cdd
..
dff1624
100644
(file)
--- a/
include/llvm/Analysis/LoopInfo.h
+++ b/
include/llvm/Analysis/LoopInfo.h
@@
-43,6
+43,8
@@
#include <algorithm>
#include <ostream>
+namespace llvm {
+
template<typename T>
static void RemoveFromVector(std::vector<T*> &V, T *N) {
typename std::vector<T*>::iterator I = std::find(V.begin(), V.end(), N);
@@
-50,8
+52,6
@@
static void RemoveFromVector(std::vector<T*> &V, T *N) {
V.erase(I);
}
-namespace llvm {
-
class DominatorTree;
class LoopInfo;
class PHINode;