gallivm: (trivial) fix compilation with llvm 3.1, 3.2
authorRoland Scheidegger <sroland@vmware.com>
Sat, 17 May 2014 00:03:35 +0000 (02:03 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 17 May 2014 00:03:35 +0000 (02:03 +0200)
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

index 621290fdfbdee9ab44066f13bddf5467a2608039..df26883196921ab6d7f6996446bbc9a10ab5cc06 100644 (file)
 
 #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>