gallivm: Initialize x86 disassembler on x86_64 too.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 17 Feb 2012 17:22:23 +0000 (17:22 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 17 Feb 2012 17:22:23 +0000 (17:22 +0000)
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index 7f4d227d5ebf651f0de54e9f876e728bcc99232d..43aaf64a64e36298c57278e45cf704d71227ed65 100644 (file)
@@ -207,7 +207,7 @@ lp_disassemble(const void* func)
 
 #if HAVE_LLVM >= 0x0208
    InitializeNativeTargetAsmPrinter();
-#elif defined(PIPE_ARCH_X86)
+#elif defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
    LLVMInitializeX86AsmPrinter();
 #elif defined(PIPE_ARCH_ARM)
    LLVMInitializeARMAsmPrinter();
@@ -215,7 +215,7 @@ lp_disassemble(const void* func)
    LLVMInitializePowerPCAsmPrinter();
 #endif
 
-#if defined(PIPE_ARCH_X86)
+#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
    LLVMInitializeX86Disassembler();
 #elif defined(PIPE_ARCH_ARM)
    LLVMInitializeARMDisassembler();