aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-30 00:22:59 +0000
committerChris Lattner <sabre@nondot.org>2004-11-30 00:22:59 +0000
commitee8c9ad8d26a4f232b4845742a620d66a65ee1c0 (patch)
tree77a66ff549edf31b79cc435ecb7cb8ec3cf7378c /lib/Target
parent6e35eda519543d3ce05727b116ec14291a56c689 (diff)
downloadexternal_llvm-ee8c9ad8d26a4f232b4845742a620d66a65ee1c0.zip
external_llvm-ee8c9ad8d26a4f232b4845742a620d66a65ee1c0.tar.gz
external_llvm-ee8c9ad8d26a4f232b4845742a620d66a65ee1c0.tar.bz2
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
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/InternalGlobalMapper.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/lib/Target/SparcV9/InternalGlobalMapper.cpp b/lib/Target/SparcV9/InternalGlobalMapper.cpp
index ef870b2..8df3dc3 100644
--- a/lib/Target/SparcV9/InternalGlobalMapper.cpp
+++ b/lib/Target/SparcV9/InternalGlobalMapper.cpp
@@ -19,21 +19,21 @@
#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