Disallow using -fmodules with -no-integrated-as.
authorTed Kremenek <kremenek@apple.com>
Mon, 11 Mar 2013 20:51:52 +0000 (20:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 11 Mar 2013 20:51:52 +0000 (20:51 +0000)
commit4b3ecba537493a9b027ba242a9fd1eac50850aeb
tree49c9de4373c0d96119c1f85a7e2cf5cc531e9b77
parenta4f42238531f0a1eb1e39c62ce5fc0571c6f2777
Disallow using -fmodules with -no-integrated-as.

Modules enables features such as auto-linking, and we simply do not want to
support a matrix of subtly enabled/disabled features depending on whether or
not a user is using the integrated assembler.

It isn't clear if this is the best place to do this check.  For one thing,
these kind of errors are not caught by the serialized diagnostics.

Fixes <rdar://problem/13289240>

llvm-svn: 176826
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/Tools.cpp
clang/test/Driver/modules_integrated_as.c [new file with mode: 0644]