mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 14:58:10 +02:00
ac/llvm: fix build with LLVM 23 (MCSubtargetInfo)
See the relevant LLVM change d50631faad.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15470
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41555>
This commit is contained in:
parent
e47ed60ee6
commit
4a7f2258f2
1 changed files with 5 additions and 1 deletions
|
|
@ -71,7 +71,11 @@ void ac_llvm_run_atexit_for_destructors(void)
|
|||
bool ac_is_llvm_processor_supported(LLVMTargetMachineRef tm, const char *processor)
|
||||
{
|
||||
TargetMachine *TM = reinterpret_cast<TargetMachine *>(tm);
|
||||
return TM->getMCSubtargetInfo()->isCPUStringValid(processor);
|
||||
#if LLVM_VERSION_MAJOR >= 23
|
||||
return TM->getMCSubtargetInfo().isCPUStringValid(processor);
|
||||
#else
|
||||
return TM->getMCSubtargetInfo()->isCPUStringValid(processor);
|
||||
#endif
|
||||
}
|
||||
|
||||
void ac_reset_llvm_all_options_occurrences()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue