Hi all, Is it too soon to start porting EH code to the new C++ API? Are there sample implementations? llvm.org/demo still uses the old EH gizmos. should we wait for 3.0 release? -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20110930/3bc09ea9/attachment.html>
> > Is it too soon to start porting EH code to the new C++ API? Are there > sample implementations? llvm.org/demo still uses the old > EH gizmos. >llvm.org/demo uses the 2.9 release, not ToT/3.0> should we wait for 3.0 release? >Depends what version of LLVM you're coding against. If you're running against ToT, you should be using the new exception handling APIs (LandingPad, et al) - Bill's been porting Clang over recently (see llvm.org/viewvc/llvm-project?rev=140049&view=rev and a couple of other checkins by Bill into the clang tree). - David -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20110930/5ee7c1c3/attachment.html>
On Sep 30, 2011, at 11:02 AM, Charllls Alquarra wrote:> Hi all, > > Is it too soon to start porting EH code to the new C++ API?Nope! :-)> Are there sample implementations? llvm.org/demo still uses the old > EH gizmos. should we wait for 3.0 release?If you're using the LLVM APIs, then looking at how it's implemented in clang is a good start: clang/lib/CodeGen/CGException.cpp If you're upgrading your bitcode files, then just (re)compile with top-of-tree clang, and you should get the new EH stuff automatically. -bw
Although not exhaustive in terms of the options available, the llvm/examples/ExceptionDemo has been ported to the new 3.0 exception API. Garrison On Sep 30, 2011, at 19:49, Bill Wendling wrote:> On Sep 30, 2011, at 11:02 AM, Charllls Alquarra wrote: > >> Hi all, >> >> Is it too soon to start porting EH code to the new C++ API? > > Nope! :-) > >> Are there sample implementations? llvm.org/demo still uses the old >> EH gizmos. should we wait for 3.0 release? > > If you're using the LLVM APIs, then looking at how it's implemented in clang is a good start: > > clang/lib/CodeGen/CGException.cpp > > If you're upgrading your bitcode files, then just (re)compile with top-of-tree clang, and you should get the new EH stuff automatically. > > -bw > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu llvm.cs.uiuc.edu > lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Hi Charllls,> Is it too soon to start porting EH code to the new C++ API? Are there sample > implementations? llvm.org/demo still uses the old > EH gizmos. should we wait for 3.0 release?dragonegg has been using it for a while. If you are not familiar with the new scheme, my EuroLLVM talk explains a bit: llvm.org/devmtg/2011-09-16/EuroLLVM2011-ExceptionHandling.pdf Ciao, Duncan.