Initialize only native LLVM Disassembler.
authorojab <ojab@ojab.ru>
Tue, 31 Jan 2012 07:43:37 +0000 (11:43 +0400)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 31 Jan 2012 08:11:24 +0000 (08:11 +0000)
Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index a50a51d7d26b819869ca654de925ea2b5865c141..33881adf18b3c7354d433f6f33c6269dce58ada7 100644 (file)
@@ -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<const MCAsmInfo> AsmInfo(T->createMCAsmInfo(Triple));