From 60b58822f0d8d07cab479ef4611029613ce2f174 Mon Sep 17 00:00:00 2001 From: ojab Date: Tue, 27 Mar 2012 07:05:58 +0400 Subject: [PATCH] gallivm: Use InitializeNativeTargetDisassembler(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To initialize only native LLVM Disassembler on LLVM >= 3.1. Signed-off-by: José Fonseca --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.30.2