Issuing Diagnostics in llvm-ld

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)?

- Sanjiv

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