diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-14 01:02:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-14 01:02:49 +0000 |
commit | 1d5562f72e3f7d9e17a2bf95afa54a98dac95894 (patch) | |
tree | 46dd59f6b2dfc6b154a4af97e383a523421f16ab /include/llvm/Analysis/LoopInfo.h | |
parent | 9c78a399076f8356a53ee67dca9c78e594e34967 (diff) | |
download | external_llvm-1d5562f72e3f7d9e17a2bf95afa54a98dac95894.zip external_llvm-1d5562f72e3f7d9e17a2bf95afa54a98dac95894.tar.gz external_llvm-1d5562f72e3f7d9e17a2bf95afa54a98dac95894.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/llvm/Analysis/LoopInfo.h')
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 4 |
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; |