[LLVMdev] llvm-mc, files without newline at eof

Jim Grosbach
Tue, 06 Sep 2011 22:19:19 -0000

A friendlier error message in that situation is definitely a good thing.

-Jim

On Sep 5, 2011, at 1:34 PM, Степан wrote:

> Hi, everybody.
>
> I am a newbie in llvm development. I found some strange behaviour in
llvm-mc. Files without empty string at the eof doesn't proceed properly.
>
> llvm-mc prints something like this:
> <stdin>:5:18: error: unexpected token in argument list
>
> It looks like a bug.
>
> At least we should print:
> <stdin>:5:18: error: no newline at the end of file!
>
> If yes, I create it in bugzilla and assign to myself.
>
> Thank you.
>
> P.S.:
> I attached file without newline at eof.
> Try to run "llvm-mc -triple=armv7-apple-darwin -show-encoding <
test.s"
>
> --
> Truly yours<test.s>_______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev