aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-21 20:23:48 +0000
committerChris Lattner <sabre@nondot.org>2003-11-21 20:23:48 +0000
commit31f8499e83dc4dccbb57ea7e76d1fd49b7010d0c (patch)
tree7311a395f4b05b01958cb55d80ba5432ad7f32c3 /lib/VMCore/Module.cpp
parent23e1492bb1e67f740c232abe985ec6d609ffae63 (diff)
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Module.cpp')
-rw-r--r--lib/VMCore/Module.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index 6b15929506..b4b0925926 100644
--- a/lib/VMCore/Module.cpp
+++ b/lib/VMCore/Module.cpp
@@ -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