From: ojab Date: Tue, 27 Mar 2012 03:05:58 +0000 (+0400) Subject: gallivm: Use InitializeNativeTargetDisassembler(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60b58822f0d8d07cab479ef4611029613ce2f174;p=mesa.git gallivm: Use InitializeNativeTargetDisassembler(). To initialize only native LLVM Disassembler on LLVM >= 3.1. Signed-off-by: José Fonseca --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index b6849cbdcab..903c8782f8d 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();