diff options
author | Mathias Fröhlich <[email protected]> | 2014-09-30 22:11:30 +0200 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2014-10-01 00:29:31 +0200 |
commit | 6e7d36fd2c1185ae1b84b81b8630472ceb87356d (patch) | |
tree | 9189f13204e8e50b43c2db1dd5cae315cfa4fbce /src/gallium/auxiliary/gallivm/lp_bld.h | |
parent | cc355f1c06063b6d3c0ba5377aee605c9c393488 (diff) |
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 <[email protected]>
Tested-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Mathias Froehlich <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld.h b/src/gallium/auxiliary/gallivm/lp_bld.h index fcf4f169b15..a01c216cfab 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld.h +++ b/src/gallium/auxiliary/gallivm/lp_bld.h @@ -58,6 +58,14 @@ #endif +#if HAVE_LLVM <= 0x0303 +/* We won't actually use LLVMMCJITMemoryManagerRef, just create a dummy + * typedef to simplify things elsewhere. + */ +typedef void *LLVMMCJITMemoryManagerRef; +#endif + + /** * Redefine these LLVM entrypoints as invalid macros to make sure we * don't accidentally use them. We need to use the functions which |