Module: Mesa Branch: master Commit: 60b58822f0d8d07cab479ef4611029613ce2f174 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=60b58822f0d8d07cab479ef4611029613ce2f174
Author: ojab <[email protected]> Date: Tue Mar 27 07:05:58 2012 +0400 gallivm: Use InitializeNativeTargetDisassembler(). To initialize only native LLVM Disassembler on LLVM >= 3.1. Signed-off-by: José Fonseca <[email protected]> --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index b6849cb..903c878 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -207,7 +207,9 @@ lp_disassemble(const void* func) LLVMInitializePowerPCAsmPrinter(); #endif -#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) +#if HAVE_LLVM >= 0x0301 + InitializeNativeTargetDisassembler(); +#elif defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) LLVMInitializeX86Disassembler(); #elif defined(PIPE_ARCH_ARM) LLVMInitializeARMDisassembler(); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
