<div class="gmail_quote">On Thu, Jun 21, 2012 at 9:12 PM, Carter, Jack <span dir="ltr"><<a href="mailto:jcarter@mips.com" target="_blank">jcarter@mips.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">There are times that I want to generate an ERROR, but not stop processing of the code. An example of this would be when I find there is a value out of range for a specific operand.<br>

<br>
producing the error for all instances of this class of errors would be good. <br>
<br>
Also, I would like to have the error message have some relationship to the offending source.<br></div></div></blockquote><div><br></div><div>This is something I've been looking into lately.  Currently, you can use LLVMContext::emitError to send an error message to a registered error handler (see LLVMContext::setInlineAsmDiagnosticHandler).  The handler can write the message to a log file, console, etc..</div>
<div><br></div><div>I want to extend this to support error/warning/info messages, and also associate source information if available.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<br>
Thanks,<br>
<br>
Jack<br>
</div>
</div>

<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>