summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/PruneEH.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-10-13 22:00:45 +0000
committerOwen Anderson <resistor@mac.com>2010-10-13 22:00:45 +0000
commitae0a7bc68303ce0c8721f0e981ae602601390e68 (patch)
treeb7ec99526b40d2ce5f50c59083e7e4991b8f6c28 /lib/Transforms/IPO/PruneEH.cpp
parent139788fe6f606075507f7cbb66cdbac57d8fabcd (diff)
downloadllvm-ae0a7bc68303ce0c8721f0e981ae602601390e68.tar.gz
llvm-ae0a7bc68303ce0c8721f0e981ae602601390e68.tar.bz2
llvm-ae0a7bc68303ce0c8721f0e981ae602601390e68.tar.xz
CallGraphSCC passes implicity require CallGraph analysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/PruneEH.cpp')
-rw-r--r--lib/Transforms/IPO/PruneEH.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp
index e71344b215..9be0fcf2a9 100644
--- a/lib/Transforms/IPO/PruneEH.cpp
+++ b/lib/Transforms/IPO/PruneEH.cpp
@@ -48,7 +48,10 @@ namespace {
}
char PruneEH::ID = 0;
-INITIALIZE_PASS(PruneEH, "prune-eh",
+INITIALIZE_PASS_BEGIN(PruneEH, "prune-eh",
+ "Remove unused exception handling info", false, false)
+INITIALIZE_AG_DEPENDENCY(CallGraph)
+INITIALIZE_PASS_END(PruneEH, "prune-eh",
"Remove unused exception handling info", false, false)
Pass *llvm::createPruneEHPass() { return new PruneEH(); }