40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
|
From 4742f9b00b804dd01eb9955dd386a2373cd8eb36 Mon Sep 17 00:00:00 2001
|
||
|
From: Armin K <krejzi@email.com>
|
||
|
Date: Thu, 02 May 2013 10:55:04 +0000
|
||
|
Subject: gallivm: Fix build with LLVM 3.3
|
||
|
|
||
|
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
|
||
|
---
|
||
|
Index: src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||
|
===================================================================
|
||
|
--- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp.orig
|
||
|
+++ src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||
|
@@ -60,6 +60,12 @@
|
||
|
#include <llvm/Target/TargetSelect.h>
|
||
|
#endif /* HAVE_LLVM < 0x0300 */
|
||
|
|
||
|
+#if HAVE_LLVM >= 0x0303
|
||
|
+#include <llvm/IR/IRBuilder.h>
|
||
|
+#include <llvm/IR/Module.h>
|
||
|
+#include <llvm/Support/CBindingWrapping.h>
|
||
|
+#endif
|
||
|
+
|
||
|
#include "pipe/p_config.h"
|
||
|
#include "util/u_debug.h"
|
||
|
#include "util/u_cpu_detect.h"
|
||
|
Index: src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
|
||
|
===================================================================
|
||
|
--- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp.orig
|
||
|
+++ src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
|
||
|
@@ -55,6 +55,10 @@
|
||
|
#include <llvm/MC/MCRegisterInfo.h>
|
||
|
#endif /* HAVE_LLVM >= 0x0301 */
|
||
|
|
||
|
+#if HAVE_LLVM >= 0x0303
|
||
|
+#include <llvm/ADT/OwningPtr.h>
|
||
|
+#endif
|
||
|
+
|
||
|
#include "util/u_math.h"
|
||
|
#include "util/u_debug.h"
|
||
|
|