clang-cl: Implement the -arch flag
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 15 Jul 2014 18:27:51 +0000 (18:27 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 15 Jul 2014 18:27:51 +0000 (18:27 +0000)
commiteeb7e65c5fca09825cfcd7a24a7670bbcb010cbb
tree1dc095aacc5224ed464cb5d1aa9dc84f0eb6507f
parent34e5ea6c9f2f0cfed9b43b465e4c9aaf8a92aad7
clang-cl: Implement the -arch flag

Summary:
This implements the -arch flag for both x86 and x86-64 by letting
them affect the default target features we pass to cc1.  -m machine
flags will override the features set by -arch.

Reviewers: hansw

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4519

llvm-svn: 213083
clang/include/clang/Driver/CLCompatOptions.td
clang/lib/Driver/Tools.cpp
clang/test/Driver/cl-options.c
clang/test/Driver/cl-x86-flags.c