[LLVMdev] Problems with "module asm"
eli.friedman at gmail.com
Mon Jun 29 22:31:59 PDT 2009
On Mon, Jun 29, 2009 at 10:14 PM, Sanjiv
Gupta<sanjiv.gupta at microchip.com> wrote:
> 1. clang-cc needs parentheses or else gives errors. So the actual
> syntax is
> module asm (" blah ");
That declares a variable of type int whose name in the assembly is "
blah "; not what you want. The correct C syntax is just the
asm(" blah ");
More information about the llvm-dev