From 7cd248aa7938a068663fcd605169b7d4e21636bf Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 13 Feb 2013 20:59:41 +0000 Subject: [PATCH] radeon/llvm: Fix build with LLVM 3.3 --- src/gallium/drivers/r600/llvm_wrapper.cpp | 4 ++++ src/gallium/drivers/radeon/radeon_llvm_emit.cpp | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/llvm_wrapper.cpp b/src/gallium/drivers/r600/llvm_wrapper.cpp index 81f53974d11..ae2f4d24f74 100644 --- a/src/gallium/drivers/r600/llvm_wrapper.cpp +++ b/src/gallium/drivers/r600/llvm_wrapper.cpp @@ -1,6 +1,10 @@ #include #include +#if HAVE_LLVM < 0x0303 #include +#else +#include +#endif #include #include #include diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp index 903e1028a09..0491e64bb6f 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp +++ b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp @@ -25,8 +25,16 @@ */ #include "radeon_llvm_emit.h" +#if HAVE_LLVM < 0x0303 #include #include +#include +#else +#include +#include +#include +#endif + #include #include #include @@ -39,7 +47,6 @@ #include #include #include -#include #include #include -- 2.30.2