[DWARF] Allow toolchain to adjust specified DWARF version.
authorArtem Belevich <tra@google.com>
Thu, 3 Dec 2020 21:48:37 +0000 (13:48 -0800)
committerArtem Belevich <tra@google.com>
Thu, 10 Dec 2020 00:34:34 +0000 (16:34 -0800)
commit016e4ebfde28d6bb1ab6399fc8abd8cfc6a1d9fd
tree26d05a930028f6bed3915d5cc42682fc8069f5de
parent2ea8c69eff07c491c7cb14dd46afd30529b89d91
[DWARF] Allow toolchain to adjust specified DWARF version.

This is needed for CUDA compilation where NVPTX back-end only supports DWARF2,
but host compilation should be allowed to use newer DWARF versions.

Differential Revision: https://reviews.llvm.org/D92617
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/Cuda.h
clang/test/Driver/cuda-omp-unsupported-debug-options.cu [new file with mode: 0644]
clang/test/Driver/cuda-unsupported-debug-options.cu [deleted file]
clang/test/Driver/dwarf-target-version-clamp.cu [new file with mode: 0644]
clang/test/Driver/openmp-unsupported-debug-options.c [deleted file]