[cfe-commits] Reduce exception handling use in TableGen

Joerg Sonnenberger joerg at britannica.bec.de
Mon Oct 22 01:08:08 PDT 2012


Hi all,
the attached patch removes the majority of the exception handling
dependency in TableGen. There is a small regression in the quality of
error messages in one code path of the SetTheory implementation, where
the location of the original expression is lost. This is a bit difficult
to fix since the functions involved can be accessed directly as well and
I am not sure how much value the location adds here.

I have also included the parts needed for Clang, but those are
unproblematic.

One piece is missing and that's CodeGenDAGPatterns.cpp. That one
actually uses the unwinding and resume behavior of exceptions to silence
errors, I will bring up patches for that separately.

Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-except.diff
Type: text/x-diff
Size: 87256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121022/02ed46c0/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-except-clang.diff
Type: text/x-diff
Size: 5874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121022/02ed46c0/attachment-0001.diff>


More information about the cfe-commits mailing list