On Jan 4, 2007, at 10:42 AM, Reid Spencer wrote:
> On Thu, 2007-01-04 at 09:54 -0800, Chris Lattner wrote:
>> Perhaps in addition to returning an error code, llvm-upgrade should
>> emit something like "parse failed" to the output stream, so that
>> later llvm-as's will die.
>
> How about we make llvm-as produce at least a warning and a non-zero
> result code when the input is empty. That way we don't mask the error
> and it isn't masked even if the source doesn't come from llvm-upgrade?

Except that an empty .ll file should be legal.  I just checked in a  
patch to llvm-upgrade, is it ok?

-Chris
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to