[LLVMdev] LLVM fails for inline asm with Link Time Optimization
pichet2000 at gmail.com
Thu Mar 26 10:22:22 PDT 2015
On Wed, Mar 25, 2015 at 4:47 PM, Ashish Saxena <ashishcseitbhu at gmail.com>
> Hi ,
> I am trying to enable link time optimization for my projects. Few of
> them has inline assembly which works perfectly with clang/llvm but on
> enabling LTO I get following error
> LLVM ERROR: Error parsing inline asm
> <inline asm>:103:2 : error 0: unknown use of instruction mnemonic without
> a size suffix
> <inline asm>:104:16 : error 0: invalid operand for instruction
> <inline asm>:106:17 : error 0: unexpected token in argument list
> & so on
> Is this a known issue ? Any workaround for this ?
My experience is that LTO doesn't break inline assembly.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev