[llvm-commits] PATCH: exception-free bugpoint

Nick Lewycky nicholas at mxc.ca
Sat Apr 10 16:48:02 PDT 2010


LLVM is nearly exception-free, but we still have exceptions on in the 
VMCore because bugpoint uses them internally. Bugpoint uses them for 
things like stopping a bisection on the pass list when the code 
generator crashes and switches to debugging the codegen crash instead. 
(This means that bugpoint has functions taking function pointer 
parameters which in turn throw exceptions.)

This patch threads error return values and/or std::string 
pointers/references all over bugpoint to replicate the existing behaviour.

There is supposed to be absolutely no functionality change. I've tested 
this side-by-side with unmodified bugpoint and fixed all the problems I 
could find, but honestly I still don't trust this patch very much.

Please review!

Nick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bugpoint-exceptionfree1.patch
Type: text/x-diff
Size: 74657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100410/093c404e/attachment.patch>


More information about the llvm-commits mailing list