[LLVMdev] how to handle inline asm code when converting c++ to C

Duncan Sands baldrick at free.fr
Tue Oct 5 00:11:50 PDT 2010


Hi Sandeep,

>   I am using llvm to convert some C++ code to C. However the C++ code has couple
> of lines of assembly that is supposed to be inlined.  I am using __asm__ directive.
> However the resulting C code  has syntax errors:

this looks like PR802 (see http://llvm.org/bugs/show_bug.cgi?id=802).

Ciao,

Duncan.

PS: The C backend is deprecated and unmaintained.



More information about the llvm-dev mailing list