gallium/clover: LLVM setLangDefaults moved from clangFrontend to clangBasic

Signed-off-by: Thomas Debesse <dev@illwieckz.net>
Reviewed-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16002>
This commit is contained in:
Thomas Debesse 2022-04-18 04:21:02 +02:00
parent b2b810ebff
commit 6983c8580a

View file

@ -102,7 +102,11 @@ namespace clover {
clang::InputKind ik, const ::llvm::Triple& triple,
clang::LangStandard::Kind d)
{
#if LLVM_VERSION_MAJOR >= 15
c->getLangOpts().setLangDefaults(c->getLangOpts(), ik.getLanguage(), triple,
#else
c->getInvocation().setLangDefaults(c->getLangOpts(), ik, triple,
#endif
#if LLVM_VERSION_MAJOR >= 12
c->getPreprocessorOpts().Includes,
#else