summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorojab <[email protected]>2012-03-27 07:05:58 +0400
committerJosé Fonseca <[email protected]>2012-03-27 16:28:30 +0100
commit60b58822f0d8d07cab479ef4611029613ce2f174 (patch)
treeab2c41d845981e9270044644f4a103678a3544c0 /src/gallium
parent410aa3eb45c88dd939dcecaa2aafa8f5afd6e000 (diff)
gallivm: Use InitializeNativeTargetDisassembler().
To initialize only native LLVM Disassembler on LLVM >= 3.1. Signed-off-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium')
-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 b6849cbdcab..903c8782f8d 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();