]> granicus.if.org Git - clang/commit
Support -masm= flag for x86 assembly targets.
authorYunzhong Gao <Yunzhong.Gao@sony.com>
Mon, 18 Jul 2016 18:44:51 +0000 (18:44 +0000)
committerYunzhong Gao <Yunzhong.Gao@sony.com>
Mon, 18 Jul 2016 18:44:51 +0000 (18:44 +0000)
commitcfabff3f46367c29b7e5f3ef592369c90bbc3247
tree1734c0c2603a6b068843b9609490cfae695acb1d
parent05b45f1569b5545e98340247c53095134e266be3
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275877 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
lib/Driver/Tools.h
test/Driver/masm.s [new file with mode: 0644]