From: Dan Gohman Date: Wed, 14 May 2008 01:02:49 +0000 (+0000) Subject: Move RemoveFromVector out of the global namespace. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1d5562f72e3f7d9e17a2bf95afa54a98dac95894;p=oota-llvm.git Move RemoveFromVector out of the global namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51090 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;