summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
diff options
context:
space:
mode:
authorojab <ojab@ojab.ru>2012-01-31 11:43:37 +0400
committerJosé Fonseca <jfonseca@vmware.com>2012-01-31 08:11:24 +0000
commit97329efc5fab01b105015773009a1f17bc6e1136 (patch)
tree01c842ba69ddc793e0ed1c1a8e335d584f6c805b /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
parent5920f18faefa34705efd8315241d5b48a8e61d90 (diff)
downloadexternal_mesa3d-97329efc5fab01b105015773009a1f17bc6e1136.zip
external_mesa3d-97329efc5fab01b105015773009a1f17bc6e1136.tar.gz
external_mesa3d-97329efc5fab01b105015773009a1f17bc6e1136.tar.bz2
Initialize only native LLVM Disassembler.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp6
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));