fix(FTBFS): gallivm: fix LLVM #include of Triple.h, moved to TargetParser
Upstream moved Triple.h from ADT to TargetParser in LLVM 17. Reference: https://github.com/llvm/llvm-project/commit/62c7f035b4392c1933550eead6ddab35122720bc Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21262>
This commit is contained in:
committed by
Marge Bot
parent
1e73fd4aa8
commit
7956b80bf8
@@ -56,7 +56,6 @@
|
||||
#include <llvm-c/ExecutionEngine.h>
|
||||
#include <llvm/Target/TargetOptions.h>
|
||||
#include <llvm/ExecutionEngine/ExecutionEngine.h>
|
||||
#include <llvm/ADT/Triple.h>
|
||||
#include <llvm/Analysis/TargetLibraryInfo.h>
|
||||
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
|
||||
#include <llvm/Support/CommandLine.h>
|
||||
@@ -67,6 +66,11 @@
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
#include <llvm/Support/MemoryBuffer.h>
|
||||
#endif
|
||||
#if LLVM_VERSION_MAJOR >= 17
|
||||
#include <llvm/TargetParser/Triple.h>
|
||||
#else
|
||||
#include <llvm/ADT/Triple.h>
|
||||
#endif
|
||||
|
||||
#if LLVM_VERSION_MAJOR < 11
|
||||
#include <llvm/IR/CallSite.h>
|
||||
|
||||
Reference in New Issue
Block a user