[llvm-dev] Enabling exception handling in llvm pass

Dylan McKay via llvm-dev llvm-dev at lists.llvm.org
Mon May 1 22:48:31 PDT 2017


The LLVM coding standards explicitly disallow exceptions

http://llvm.org/docs/CodingStandards.html#do-not-use-rtti-or-exceptions

On Tue, May 2, 2017 at 5:28 PM, via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

> Hi everyone,
>
> I have written a LLVM(llvm-3.4) pass which includes try-catch block. When
> I am compiling error is displayed which says
>
> cannot use 'try' with exceptions disabled
>
> Please can someone tell me how to enable EH for the same.
>
>
> --
> Thanks and Regards
> Awanish Pandey
> PhD, CSE
> IIT Kanpur
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170502/c8704723/attachment.html>


More information about the llvm-dev mailing list