From 5e078813053b00958a680b53e3e6b2c115fae7fa Mon Sep 17 00:00:00 2001 From: Mike Lothian Date: Sun, 1 Apr 2018 01:32:21 +0100 Subject: radeonsi: Fix include for LLVMAddPromoteMemoryToRegisterPass MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include llvm-c/Transforms/Utils.h with the newest LLVM 7 Signed-of-by: Mike Lothian Reviewed-by: Samuel Pitoiset Tested-by: Dieter Nützel Signed-off-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c index 79fdebe8388..622fd269509 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c @@ -40,6 +40,9 @@ #include #include #include +#if HAVE_LLVM >= 0x0700 +#include +#endif enum si_llvm_calling_convention { RADEON_LLVM_AMDGPU_VS = 87, -- cgit v1.2.3