clc: remove code supporting pre llvm-10

we require llvm-10+ already anyway, see meson.build:1726

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26871>
This commit is contained in:
Karol Herbst 2024-01-03 15:28:16 +01:00 committed by Marge Bot
parent 99c69e624b
commit 3ee6339206

View file

@ -806,12 +806,7 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx,
clang_opts.insert(clang_opts.end(), args->args, args->args + args->num_args);
if (!clang::CompilerInvocation::CreateFromArgs(c->getInvocation(),
#if LLVM_VERSION_MAJOR >= 10
clang_opts,
#else
clang_opts.data(),
clang_opts.data() + clang_opts.size(),
#endif
diag)) {
clc_error(logger, "Couldn't create Clang invocation.\n");
return {};