summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorojab <ojab@ojab.ru>2012-03-27 07:05:58 +0400
committerJosé Fonseca <jfonseca@vmware.com>2012-03-27 16:28:30 +0100
commit60b58822f0d8d07cab479ef4611029613ce2f174 (patch)
treeab2c41d845981e9270044644f4a103678a3544c0
parent410aa3eb45c88dd939dcecaa2aafa8f5afd6e000 (diff)
downloadexternal_mesa3d-60b58822f0d8d07cab479ef4611029613ce2f174.zip
external_mesa3d-60b58822f0d8d07cab479ef4611029613ce2f174.tar.gz
external_mesa3d-60b58822f0d8d07cab479ef4611029613ce2f174.tar.bz2
gallivm: Use InitializeNativeTargetDisassembler().
To initialize only native LLVM Disassembler on LLVM >= 3.1. Signed-off-by: José Fonseca <jfonseca@vmware.com>
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index b6849cb..903c878 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -207,7 +207,9 @@ lp_disassemble(const void* func)
LLVMInitializePowerPCAsmPrinter();
#endif
-#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
+#if HAVE_LLVM >= 0x0301
+ InitializeNativeTargetDisassembler();
+#elif defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
LLVMInitializeX86Disassembler();
#elif defined(PIPE_ARCH_ARM)
LLVMInitializeARMDisassembler();