[PATCH] Fix inline assembly that switches between ARM and Thumb modes

Renato Golin renato.golin at linaro.org
Tue Dec 17 01:52:35 PST 2013

On 17 December 2013 01:08, Greg Fitzgerald <garious at gmail.com> wrote:

>   That would work, except that the object file would be missing the
> mapping symbol ($a/$t).  `objdump` would print garbage after the inline
> assembly.  Need that call to EmitAssemblerFlag(MCAF_Code16)


  As Jim pointed out, we can't implement this without closing our GCC
> escape hatch.  When emitting raw text, we don't run the Asm parser.

You don't need to parse the asm, just
call EmitAssemblerFlag(MCAF_Code16/32) after the emit Raw and return.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131217/6a3da48e/attachment.html>

More information about the llvm-commits mailing list