aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-14 01:02:49 +0000
committerDan Gohman <gohman@apple.com>2008-05-14 01:02:49 +0000
commit0d9b1c27546f5a1fda819c4b1315b66e4da36745 (patch)
tree46dd59f6b2dfc6b154a4af97e383a523421f16ab /include
parente8e4a418b0fb94b4de818c7c58a4bb4e022867cf (diff)
downloadexternal_llvm-0d9b1c27546f5a1fda819c4b1315b66e4da36745.zip
external_llvm-0d9b1c27546f5a1fda819c4b1315b66e4da36745.tar.gz
external_llvm-0d9b1c27546f5a1fda819c4b1315b66e4da36745.tar.bz2
Move RemoveFromVector out of the global namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/LoopInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index e3e2cdd..dff1624 100644
--- 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;