aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO/GlobalDCE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/IPO/GlobalDCE.cpp')
-rw-r--r--lib/Transforms/IPO/GlobalDCE.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/GlobalDCE.cpp b/lib/Transforms/IPO/GlobalDCE.cpp
index c419ad1..494b363 100644
--- a/lib/Transforms/IPO/GlobalDCE.cpp
+++ b/lib/Transforms/IPO/GlobalDCE.cpp
@@ -70,8 +70,6 @@ static bool RemoveUnreachableGlobalVariables(Module &M) {
namespace {
struct GlobalDCE : public Pass {
- const char *getPassName() const { return "Dead Global Elimination"; }
-
// run - Do the GlobalDCE pass on the specified module, optionally updating
// the specified callgraph to reflect the changes.
//
@@ -88,6 +86,7 @@ namespace {
AU.addRequired(CallGraph::ID);
}
};
+ RegisterPass<GlobalDCE> X("globaldce", "Dead Global Elimination");
}
Pass *createGlobalDCEPass() { return new GlobalDCE(); }