Mesa (master): gallivm: (trivial) fix compilation with llvm 3.1, 3.2
Roland Scheidegger
sroland at kemper.freedesktop.org
Sat May 17 00:06:25 UTC 2014
Module: Mesa
Branch: master
Commit: 3bf2d86c09caeb3ed7c892a3852b8d2d921cff01
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3bf2d86c09caeb3ed7c892a3852b8d2d921cff01
Author: Roland Scheidegger <sroland at vmware.com>
Date: Sat May 17 02:03:35 2014 +0200
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
---
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 ++++
1 file changed, 4 insertions(+)
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>
More information about the mesa-commit
mailing list