summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2014-05-17 02:03:35 +0200
committerRoland Scheidegger <sroland@vmware.com>2014-05-17 02:03:35 +0200
commit3bf2d86c09caeb3ed7c892a3852b8d2d921cff01 (patch)
treee13d02b648c8c15b34cc8ae05b1288c5bcd4be75 /src/gallium
parent3a1da0abeef4144e3c060216d78420f047c6e585 (diff)
downloadexternal_mesa3d-3bf2d86c09caeb3ed7c892a3852b8d2d921cff01.zip
external_mesa3d-3bf2d86c09caeb3ed7c892a3852b8d2d921cff01.tar.gz
external_mesa3d-3bf2d86c09caeb3ed7c892a3852b8d2d921cff01.tar.bz2
gallivm: (trivial) fix compilation with llvm 3.1, 3.2
I actually checked the getModuleIdentifier() function exists with 3.1 but missed that the file moved... This fixes https://bugs.freedesktop.org/show_bug.cgi?id=78803
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 621290f..df26883 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -39,7 +39,11 @@
#include <llvm/Support/Host.h>
+#if HAVE_LLVM >= 0x0303
#include <llvm/IR/Module.h>
+#else
+#include <llvm/Module.h>
+#endif
#include <llvm/MC/MCDisassembler.h>
#include <llvm/MC/MCAsmInfo.h>