[llvm-commits] CVS: llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 29 16:23:14 PST 2004
Changes in directory llvm/lib/Target/SparcV9:
InternalGlobalMapper.cpp updated: 1.4 -> 1.5
---
Log message:
Remove extraneous namespacification. In particular, don't define llvm::llvm::createInternalGlobalMapperPass
---
Diffs of the changes: (+9 -11)
Index: llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp
diff -u llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp:1.4 llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp:1.5
--- llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp:1.4 Sun Sep 19 23:46:39 2004
+++ llvm/lib/Target/SparcV9/InternalGlobalMapper.cpp Mon Nov 29 18:22:59 2004
@@ -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 @@
return true; // Module was modified.
}
-
-} // end namespace llvm
More information about the llvm-commits
mailing list