diff options
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 |
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(); |