Remove extraneous namespacification. In particular, don't define llvm::llvm::createInternalGlobalMapperPass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-11-30 00:22:59 +00:00
parent 6e35eda519
commit ee8c9ad8d2

View File

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