[clang][ARM] When handling multiple -mimplicit-it mark all as used
authorDavid Spickett <david.spickett@linaro.org>
Tue, 25 May 2021 13:54:03 +0000 (13:54 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Tue, 25 May 2021 14:53:07 +0000 (14:53 +0000)
commit8427053f81922b0665a1ad3f561c09f8c0b8dd30
tree6fbc92d53785c7a78e22e556d70b88be7276cb97
parent67c3707b31b47c9ef4c50e5f58e7c94166753ff7
[clang][ARM] When handling multiple -mimplicit-it mark all as used

Since 4468e5b8999291cc84b78f33f207dcd0e58146bc clang will prefer
the last one it finds of "-mimplicit-it" or "-Wa,-mimplicit-it".

Due to a mistake in that patch the compiler argument "-mimplicit-it"
was never marked as used, even if it was the last one and was passed
to llvm.

Move the Claim call back to the start of the loop and update
the testing to check we don't get any unused argument warnings.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D103086
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/arm-target-as-mimplicit-it.s