diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-26 23:49:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-26 23:49:32 +0000 |
commit | c6f0aadc3b4f7e79bd3f4e59b1192f770fc63a5d (patch) | |
tree | b6b31c6e52903cb8ec261e4fcc592868c27a41a8 /include | |
parent | d61647d306bc297603c607411b2777b217cd65b6 (diff) | |
download | llvm-c6f0aadc3b4f7e79bd3f4e59b1192f770fc63a5d.tar.gz llvm-c6f0aadc3b4f7e79bd3f4e59b1192f770fc63a5d.tar.bz2 llvm-c6f0aadc3b4f7e79bd3f4e59b1192f770fc63a5d.tar.xz |
Fix a problem that lower invoke has with allocas (PR6694), and
add a version of createLowerInvokePass that allows the client
to specify whether it wants "expensive" or "cheap" lowering.
Patch by Alex Mac!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Transforms/Scalar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index cbb870ef6d..a8c9c6a084 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -241,6 +241,8 @@ extern const PassInfo *const LowerSwitchID; // lowering pass. // FunctionPass *createLowerInvokePass(const TargetLowering *TLI = 0); +FunctionPass *createLowerInvokePass(const TargetLowering *TLI, + bool useExpensiveEHSupport); extern const PassInfo *const LowerInvokePassID; //===----------------------------------------------------------------------===// |