diff options
author | Yunzhong Gao <Yunzhong.Gao@sony.com> | 2016-07-18 18:44:51 +0000 |
---|---|---|
committer | Yunzhong Gao <Yunzhong.Gao@sony.com> | 2016-07-18 18:44:51 +0000 |
commit | fc611138eb9718d267cac07a4b786b55a6d11f77 (patch) | |
tree | 272971b4ea8d3d89db14a725c3205989cd16bd1f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a68b8df3a75d4b73bfffd8a91b28b89f9304e73b (diff) | |
download | bcm5719-llvm-fc611138eb9718d267cac07a4b786b55a6d11f77.tar.gz bcm5719-llvm-fc611138eb9718d267cac07a4b786b55a6d11f77.zip |
Support -masm= flag for x86 assembly targets.
For assembly files without .intel_syntax or .att_syntax directives, allow the
-masm= flag to supply a default assembly dialect. For example,
C:\TMP> type intel.s
.text
mov al,0
C:\TMP> clang -masm=intel -c intel.s
Without this patch, one would need to pass an "-mllvm -x86-asm-syntax=" flag
directly to the backend.
C:\TMP> clang -mllvm --x86-asm-syntax=intel -c intel.s
Differentials Review: http://reviews.llvm.org/D22285
llvm-svn: 275877
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions