Mesa (master): Initialize only native LLVM Disassembler.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Jan 31 08:22:30 UTC 2012


Module: Mesa
Branch: master
Commit: 97329efc5fab01b105015773009a1f17bc6e1136
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=97329efc5fab01b105015773009a1f17bc6e1136

Author: ojab <ojab at ojab.ru>
Date:   Tue Jan 31 11:43:37 2012 +0400

Initialize only native LLVM Disassembler.

Signed-off-by: José Fonseca <jfonseca at vmware.com>

---

 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<const MCAsmInfo> AsmInfo(T->createMCAsmInfo(Triple));




More information about the mesa-commit mailing list