[llvm-commits] CVS: llvm/include/llvm/Transforms/Scalar.h

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 31 16:00:02 PST 2004


Changes in directory llvm/include/llvm/Transforms:

Scalar.h updated: 1.36 -> 1.37

---
Log message:

Improve description, add warning


---
Diffs of the changes:  (+6 -2)

Index: llvm/include/llvm/Transforms/Scalar.h
diff -u llvm/include/llvm/Transforms/Scalar.h:1.36 llvm/include/llvm/Transforms/Scalar.h:1.37
--- llvm/include/llvm/Transforms/Scalar.h:1.36	Tue Mar 30 12:41:08 2004
+++ llvm/include/llvm/Transforms/Scalar.h	Wed Mar 31 15:59:07 2004
@@ -262,8 +262,12 @@
 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;





More information about the llvm-commits mailing list