Finegrainify namespacification

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-11-21 20:23:48 +00:00
parent 23e1492bb1
commit 31f8499e83
13 changed files with 152 additions and 171 deletions

View File

@ -21,8 +21,7 @@
#include <algorithm>
#include <cstdarg>
#include <map>
namespace llvm {
using namespace llvm;
Function *ilist_traits<Function>::createNode() {
FunctionType *FTy =
@ -55,11 +54,13 @@ template class SymbolTableListTraits<Function, Module, Module>;
// Define the GlobalValueRefMap as a struct that wraps a map so that we don't
// have Module.h depend on <map>
//
struct GlobalValueRefMap {
typedef std::map<GlobalValue*, ConstantPointerRef*> MapTy;
typedef MapTy::iterator iterator;
std::map<GlobalValue*, ConstantPointerRef*> Map;
};
namespace llvm {
struct GlobalValueRefMap {
typedef std::map<GlobalValue*, ConstantPointerRef*> MapTy;
typedef MapTy::iterator iterator;
std::map<GlobalValue*, ConstantPointerRef*> Map;
};
}
Module::Module(const std::string &MID)
@ -310,4 +311,3 @@ void Module::mutateConstantPointerRef(GlobalValue *OldGV, GlobalValue *NewGV) {
}
}
} // End llvm namespace