From 31f8499e83dc4dccbb57ea7e76d1fd49b7010d0c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 21 Nov 2003 20:23:48 +0000 Subject: Finegrainify namespacification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10131 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Module.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/VMCore/Module.cpp') 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 #include #include - -namespace llvm { +using namespace llvm; Function *ilist_traits::createNode() { FunctionType *FTy = @@ -55,11 +54,13 @@ template class SymbolTableListTraits; // Define the GlobalValueRefMap as a struct that wraps a map so that we don't // have Module.h depend on // -struct GlobalValueRefMap { - typedef std::map MapTy; - typedef MapTy::iterator iterator; - std::map Map; -}; +namespace llvm { + struct GlobalValueRefMap { + typedef std::map MapTy; + typedef MapTy::iterator iterator; + std::map Map; + }; +} Module::Module(const std::string &MID) @@ -310,4 +311,3 @@ void Module::mutateConstantPointerRef(GlobalValue *OldGV, GlobalValue *NewGV) { } } -} // End llvm namespace -- cgit v1.2.3-18-g5258