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.
-Eli