gallivm: Fix build for LLVM 3.2
authorMathias Fröhlich <Mathias.Froehlich@gmx.net>
Tue, 30 Sep 2014 20:11:30 +0000 (22:11 +0200)
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>
Tue, 30 Sep 2014 22:29:31 +0000 (00:29 +0200)
commit6e7d36fd2c1185ae1b84b81b8630472ceb87356d
tree9189f13204e8e50b43c2db1dd5cae315cfa4fbce
parentcc355f1c06063b6d3c0ba5377aee605c9c393488
gallivm: Fix build for LLVM 3.2

Do not rely on LLVMMCJITMemoryManagerRef being available.
The c binding to the memory manager objects only appeared
on llvm-3.4.
The change is based on an initial patch of Brian Paul.

Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
src/gallium/auxiliary/gallivm/lp_bld.h
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
src/gallium/auxiliary/gallivm/lp_bld_misc.h