Mark -Xclang as being a compilation-only option so that the clang driver
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 18 Apr 2016 23:12:59 +0000 (23:12 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 18 Apr 2016 23:12:59 +0000 (23:12 +0000)
commitcceb468f367b5af5ba60de7ec257c7d57f8d9c8e
tree0b8d273cb3aab95d6965a2da40d426ea51289120
parentebb932d0607bd79fa63e0eddd2e014243e756949
Mark -Xclang as being a compilation-only option so that the clang driver
doesn't warn if it's passed to a link action. This matches the behavior for
most other compilation-only options (including things like -f flags), and is
necessary to suppress warnings on systems like cmake that always pass all
compile flags to the linker.

llvm-svn: 266695
clang/include/clang/Driver/Options.td
clang/test/Driver/linker-opts.c