Finegrainify namespacification
llvm-svn: 10138
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
index 498cd7b..2ae61fa 100644
--- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
@@ -21,8 +21,7 @@
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "Support/Statistic.h"
-
-namespace llvm {
+using namespace llvm;
namespace {
Statistic<> NumMerged("constmerge", "Number of global constants merged");
@@ -37,7 +36,7 @@
RegisterOpt<ConstantMerge> X("constmerge","Merge Duplicate Global Constants");
}
-Pass *createConstantMergePass() { return new ConstantMerge(); }
+Pass *llvm::createConstantMergePass() { return new ConstantMerge(); }
bool ConstantMerge::run(Module &M) {
std::map<Constant*, GlobalVariable*> CMap;
@@ -80,4 +79,3 @@
return MadeChanges;
}
-} // End llvm namespace