summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LowerInvoke.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-17 21:05:27 +0000
committerChris Lattner <sabre@nondot.org>2006-05-17 21:05:27 +0000
commited96fe8c79b36a38bd9280438656ee539276fb41 (patch)
tree2c65bc7565cf4e3e2986cb92c4811c47df41ad1e /lib/Transforms/Utils/LowerInvoke.cpp
parent6b12516f1a7c21e62f776d3b8b3ddcd16bda5496 (diff)
downloadllvm-ed96fe8c79b36a38bd9280438656ee539276fb41.tar.gz
llvm-ed96fe8c79b36a38bd9280438656ee539276fb41.tar.bz2
llvm-ed96fe8c79b36a38bd9280438656ee539276fb41.tar.xz
Declare that lowerinvoke doesn't interact with other lowering passes.
Patch written by Domagoj Babic! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerInvoke.cpp')
-rw-r--r--lib/Transforms/Utils/LowerInvoke.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp
index be706c3ef8..f7cb65c262 100644
--- a/lib/Transforms/Utils/LowerInvoke.cpp
+++ b/lib/Transforms/Utils/LowerInvoke.cpp
@@ -71,7 +71,15 @@ namespace {
JumpBufAlign(Align) {}
bool doInitialization(Module &M);
bool runOnFunction(Function &F);
-
+
+ virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ // This is a cluster of orthogonal Transforms
+ AU.addPreservedID(PromoteMemoryToRegisterID);
+ AU.addPreservedID(LowerSelectID);
+ AU.addPreservedID(LowerSwitchID);
+ AU.addPreservedID(LowerAllocationsID);
+ }
+
private:
void createAbortMessage();
void writeAbortMessage(Instruction *IB);