aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-11-15 10:05:12 -0500
committerNico Weber <thakis@chromium.org>2021-11-17 13:23:18 -0500
commit103cc914d63371212fdc81e450572ee096952211 (patch)
tree1e1efd0edff942b418c6f670f8246435d9287ed9 /clang/lib/Frontend/CompilerInvocation.cpp
parente76e5729896c4a62f1f5ccbf784a59de96f74cbd (diff)
downloadllvm-103cc914d63371212fdc81e450572ee096952211.zip
llvm-103cc914d63371212fdc81e450572ee096952211.tar.gz
llvm-103cc914d63371212fdc81e450572ee096952211.tar.bz2
[x86/asm] Make variants work when converting at&t inline asm input to intel asm output
`asm` always has AT&T-style input (`asm inteldialect` has Intel-style asm input), so EmitGCCInlineAsmStr() always has to pick the same variant since it cares about the input asm string, not the output asm string. For PowerPC, that default variant is 1. For other targets, it's 0. Without this, the included test case errors out with error: unknown use of instruction mnemonic without a size suffix mov rax, rbx since it picks the intel branch and then tries to interpret it as AT&T when selecting intel-style output with `-x86-asm-syntax=intel`. Differential Revision: https://reviews.llvm.org/D113894
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions