[PATCH] D20337: [MC] Support symbolic expressions in assembly directives

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 08:36:51 PDT 2016


On Wed, May 25, 2016 at 10:45:00AM -0400, James Y Knight via llvm-commits wrote:
> The .s does have a way to carry the location. GCC emits location lines
> around inline asm, like this:
> #APP
> # 3 "/tmp/test-asm.c" 1
>         cmp %ax, %ax
> # 0 "" 2
> #NO_APP
> 
> Clang doesn't do that. Clang emits for the same code:
>         #APP
>         cmpw    %ax, %ax
>         #NO_APP

What do we use on architectures where # is not a comment marker?

Joerg


More information about the llvm-commits mailing list