gallivm: Fix LLVM-2.7 build.
authorojab <ojab@ojab.ru>
Wed, 1 Feb 2012 06:00:10 +0000 (10:00 +0400)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Feb 2012 09:04:10 +0000 (09:04 +0000)
Signed-off-by: José Fonseca <jfonseca@vmware.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index 33881adf18b3c7354d433f6f33c6269dce58ada7..be8d7884bca13f2ad232ae57e4c6a9623e35a472 100644 (file)
@@ -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