summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/ConstantProp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Scalar/ConstantProp.cpp')
-rw-r--r--lib/Transforms/Scalar/ConstantProp.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/ConstantProp.cpp b/lib/Transforms/Scalar/ConstantProp.cpp
index 66e78960f7..ba084b16ea 100644
--- a/lib/Transforms/Scalar/ConstantProp.cpp
+++ b/lib/Transforms/Scalar/ConstantProp.cpp
@@ -26,8 +26,7 @@
#include "llvm/Support/InstIterator.h"
#include "Support/Statistic.h"
#include <set>
-
-namespace llvm {
+using namespace llvm;
namespace {
Statistic<> NumInstKilled("constprop", "Number of instructions killed");
@@ -43,7 +42,7 @@ namespace {
RegisterOpt<ConstantPropagation> X("constprop","Simple constant propagation");
}
-Pass *createConstantPropagationPass() {
+Pass *llvm::createConstantPropagationPass() {
return new ConstantPropagation();
}
@@ -75,5 +74,3 @@ bool ConstantPropagation::runOnFunction(Function &F) {
}
return Changed;
}
-
-} // End llvm namespace