aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/SCCP.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r--lib/Transforms/Scalar/SCCP.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp
index 4d752e9..b32481e 100644
--- a/lib/Transforms/Scalar/SCCP.cpp
+++ b/lib/Transforms/Scalar/SCCP.cpp
@@ -94,10 +94,6 @@ class SCCP : public FunctionPass, public InstVisitor<SCCP> {
std::vector<BasicBlock*> BBWorkList; // The BasicBlock work list
public:
- const char *getPassName() const {
- return "Sparse Conditional Constant Propogation";
- }
-
// runOnFunction - Run the Sparse Conditional Constant Propogation algorithm,
// and return true if the function was modified.
//
@@ -223,6 +219,8 @@ private:
visit(I);
}
};
+
+ RegisterPass<SCCP> X("sccp", "Sparse Conditional Constant Propogation");
} // end anonymous namespace
@@ -233,7 +231,6 @@ Pass *createSCCPPass() {
}
-
//===----------------------------------------------------------------------===//
// SCCP Class Implementation