[LLVMdev] Problem with `as'

Chris Lattner sabre at nondot.org
Tue Jun 3 14:24:01 PDT 2003


> I am trying to assemble a preety simple program, but the
> assembler is giving parse errors:
> IfUnEqual:
> 	call int %puts(sbyte* %cast2)
> Done:

This is the problem.  In LLVM, there are no fall through branches like
this.  You have to put an explicit "br label %Done" after the call.

> Secondly, can I get the GCC frontend that generater LLVM code?
> It would be much easier than writing assembly.

Wow, I didn't realize you didn't have it yet.  Sorry about that!  I'll
package it up this afternoon and email you.

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-dev mailing list