diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-31 21:59:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-31 21:59:07 +0000 |
commit | 0c58897d1c95d6b92c985010d62edfc2945ef22b (patch) | |
tree | ac8545084e048ead71c00f4a1d1e88a852755d77 | |
parent | 83706a5a3a6f19451765b743c5a72b62f74eb71a (diff) |
Improve description, add warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12570 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Transforms/Scalar.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 8b0a1d72ca..7acc7a6a12 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -262,8 +262,12 @@ FunctionPass *createLowerSwitchPass(); FunctionPass *createLowerSelectPass(bool OnlyFP = false); //===----------------------------------------------------------------------===// -// This pass converts 'invoke' instructions calls, and 'unwind' instructions -// into calls to abort(). +// This pass converts invoke and unwind instructions to use sjlj exception +// handling mechanisms. Note that after this pass runs the CFG is not entirely +// accurate (exceptional control flow edges are not correct anymore) so only +// very simple things should be done after the lowerinvoke pass has run (like +// generation of native code). This should not be used as a general purpose "my +// LLVM-to-LLVM pass doesn't support the invoke instruction yet" lowering pass. // FunctionPass *createLowerInvokePass(); extern const PassInfo *LowerInvokePassID; |