From db312b62f2237ea5fd5a98f04550b862c116a392 Mon Sep 17 00:00:00 2001 From: ojab Date: Wed, 1 Feb 2012 10:00:10 +0400 Subject: gallivm: Fix LLVM-2.7 build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Fonseca Tested-by: Vinson Lee --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index 33881ad..be8d788 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -199,13 +199,15 @@ lp_disassemble(const void* func) #if HAVE_LLVM >= 0x0208 InitializeNativeTargetAsmPrinter(); -#else - InitializeAllAsmPrinters(); +#elif LLVM_NATIVE_ARCH == X86Target + LLVMInitializeX86AsmPrinter(); +#elif LLVM_NATIVE_ARCH == ARMTarget + LLVMInitializeARMAsmPrinter(); #endif -#if LLVM_NATIVE_ARCH == X86 +#if (LLVM_NATIVE_ARCH == X86 || LLVM_NATIVE_ARCH == X86Target) LLVMInitializeX86Disassembler(); -#elif LLVM_NATIVE_ARCH == ARM +#elif (LLVM_NATIVE_ARCH == ARM || LLVM_NATIVE_ARCH == ARMTarget) LLVMInitializeARMDisassembler(); #endif -- cgit v1.1