aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/GCSE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Scalar/GCSE.cpp')
-rw-r--r--lib/Transforms/Scalar/GCSE.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp
index 56bb191..568f3db 100644
--- a/lib/Transforms/Scalar/GCSE.cpp
+++ b/lib/Transforms/Scalar/GCSE.cpp
@@ -42,10 +42,6 @@ namespace {
//
map<BasicBlock*, bool> BBContainsStore;
public:
- const char *getPassName() const {
- return "Global Common Subexpression Elimination";
- }
-
virtual bool runOnFunction(Function &F);
// Visitation methods, these are invoked depending on the type of
@@ -87,6 +83,8 @@ namespace {
AU.addRequired(ImmediateDominators::ID);
}
};
+
+ RegisterPass<GCSE> X("gcse", "Global Common Subexpression Elimination");
}
// createGCSEPass - The public interface to this file...