From 2f29ff9455d5ee037ca8f2eca9c8b9e4b9783bcb 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. --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index a50a51d..33881ad 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)); -- 1.7.8