[clang][ARM] only check -mtp=cp15 for non-asm sources
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 6 Dec 2021 19:11:19 +0000 (11:11 -0800)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 6 Dec 2021 19:31:23 +0000 (11:31 -0800)
commit73ee4e1cbd643028d63200f05199a128609aba5f
treea1ce7dc3a53d627cd9f4d2b9cec3a59951e0b63f
parent4b63562ebcfa2bc194a778018e212dc3b99528f7
[clang][ARM] only check -mtp=cp15 for non-asm sources

This diagnostic is really to highlight lack of support for hard thread
pointers in post-RA instruction scheduling for non-armv6k+ targets;
something that isn't run for assembler sources.

Fixes: https://github.com/ClangBuiltLinux/linux/issues/1502
Link: https://lore.kernel.org/all/814585495.6773.1636629846970@jenkins.jenkins/
Reviewed By: ardb

Differential Revision: https://reviews.llvm.org/D114124
clang/lib/Driver/ToolChains/Arch/ARM.cpp
clang/lib/Driver/ToolChains/Arch/ARM.h
clang/test/Driver/clang-translation.c