From: Oded Gabbay Date: Thu, 18 Feb 2016 14:39:06 +0000 (+0200) Subject: gallivm: Check whether to stop disassemble only for x86 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3e3c3e621a457866e141a18aba094e6e694bd45;p=mesa.git gallivm: Check whether to stop disassemble only for x86 Because the if statement that checks whether we have a return statement is valid only on x86, surround it with X86 or X86-64 arch defines Signed-off-by: Oded Gabbay Reviewed-by: Jose Fonseca Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index 7e98f1a513f..efaf2fa306a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -200,9 +200,11 @@ disassemble(const void* func, std::stringstream &buffer) * XXX: This currently assumes x86 */ +#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) if (Size == 1 && bytes[pc] == 0xc3) { break; } +#endif /* * Advance.