From 0d9b1c27546f5a1fda819c4b1315b66e4da36745 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 14 May 2008 01:02:49 +0000 Subject: [PATCH] Move RemoveFromVector out of the global namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51090 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/LoopInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index e3e2cdd32dd..dff1624a5a0 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -43,6 +43,8 @@ #include #include +namespace llvm { + template static void RemoveFromVector(std::vector &V, T *N) { typename std::vector::iterator I = std::find(V.begin(), V.end(), N); @@ -50,8 +52,6 @@ static void RemoveFromVector(std::vector &V, T *N) { V.erase(I); } -namespace llvm { - class DominatorTree; class LoopInfo; class PHINode; -- 2.11.0