Remove extraneous namespacification. In particular, don't define llvm::llvm::createI...
authorChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2004 00:22:59 +0000 (00:22 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2004 00:22:59 +0000 (00:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18365 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/InternalGlobalMapper.cpp

index ef870b224f46320589d97db9634d895a1557464b..8df3dc390a4644e3898f6bfdb6657f97f0060a90 100644 (file)
 #include "llvm/Constants.h"
 #include "llvm/Module.h"
 #include "llvm/Pass.h"
-#include "llvm/Type.h"
 #include "llvm/DerivedTypes.h"
 using namespace llvm;
 
-namespace llvm {
-
 typedef std::vector<Constant *> GVVectorTy;
 
-class InternalGlobalMapper : public ModulePass {
-public:
-  bool runOnModule(Module &M);
-};
+namespace {
+  struct InternalGlobalMapper : public ModulePass {
+    bool runOnModule(Module &M);
+  };
+}
 
-ModulePass *llvm::createInternalGlobalMapperPass() {
-  return new InternalGlobalMapper();
+namespace llvm {
+  ModulePass *createInternalGlobalMapperPass() {
+    return new InternalGlobalMapper();
+  }
 }
 
 static void maybeAddInternalValueToVector (GVVectorTy &Vector, GlobalValue &GV){
@@ -80,5 +80,3 @@ bool InternalGlobalMapper::runOnModule(Module &M) {
 
   return true; // Module was modified.
 }
-
-} // end namespace llvm