From 97329efc5fab01b105015773009a1f17bc6e1136 Mon Sep 17 00:00:00 2001 From: ojab Date: Tue, 31 Jan 2012 11:43:37 +0400 Subject: [PATCH] Initialize only native LLVM Disassembler. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: José Fonseca --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index a50a51d7d26..33881adf18b 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -203,7 +203,11 @@ lp_disassemble(const void* func) InitializeAllAsmPrinters(); #endif - InitializeAllDisassemblers(); +#if LLVM_NATIVE_ARCH == X86 + LLVMInitializeX86Disassembler(); +#elif LLVM_NATIVE_ARCH == ARM + LLVMInitializeARMDisassembler(); +#endif #if HAVE_LLVM >= 0x0300 OwningPtr AsmInfo(T->createMCAsmInfo(Triple)); -- 2.30.2