[LLVMdev] Issuing Diagnostics in llvm-ld

Eli Friedman eli.friedman at gmail.com
Wed Jul 22 22:55:30 PDT 2009

On Wed, Jul 22, 2009 at 10:33 PM, Sanjiv
Gupta<sanjiv.gupta at microchip.com> wrote:
> Hi,
> llvm-ld currently does not have the diagnostics framework.
> PIC16 does not support recursion and we want to diagnose that in llvm-ld
> and issue an error. Is that doable with ease (as far as the flashing an
> error message is concerned)?

You can make a pass write a warning to cerr quite easily if you want;
instcombine does it.  To make it an error, call exit.  Not
particularly clean, but I can't think of any obvious issues.


More information about the llvm-dev mailing list