mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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:
parent
b2b810ebff
commit
6983c8580a
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue