mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 08:56:04 +00:00
Move RemoveFromVector out of the global namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51090 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c78a39907
commit
1d5562f72e
@ -43,6 +43,8 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|
||||||
|
namespace llvm {
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static void RemoveFromVector(std::vector<T*> &V, T *N) {
|
static void RemoveFromVector(std::vector<T*> &V, T *N) {
|
||||||
typename std::vector<T*>::iterator I = std::find(V.begin(), V.end(), 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);
|
V.erase(I);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
|
|
||||||
class DominatorTree;
|
class DominatorTree;
|
||||||
class LoopInfo;
|
class LoopInfo;
|
||||||
class PHINode;
|
class PHINode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user