]> granicus.if.org Git - clang/commit
driver: Don't warn about assembler flags being unused when not assembling; different...
authorNico Weber <nicolasweber@gmx.de>
Sat, 27 Jul 2019 01:13:00 +0000 (01:13 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sat, 27 Jul 2019 01:13:00 +0000 (01:13 +0000)
commit4b887e5507ce093df47c1c80e7e7e77f2e8cb8be
tree77b783ec790e8b656e9509c66af046a0a042946a
parent8bcd05c1d96ba8d809485128a7a178c56a531d6e
driver: Don't warn about assembler flags being unused when not assembling; different approach

This morally relands r365703 (and r365714), originally reviewed at
https://reviews.llvm.org/D64527, but with a different implementation.

Relanding the same approach with a fix for the revert reason got a bit
involved (see https://reviews.llvm.org/D65108) so use a simpler approach
with a more localized implementation (that in return duplicates code
a bit more).

This approach also doesn't validate flags for the integrated assembler
if the assembler step doesn't run.

Fixes PR42066.

Differential Revision: https://reviews.llvm.org/D65233

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367165 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/as-options.s