From: Vinson Lee Date: Thu, 30 Jun 2011 22:07:57 +0000 (-0700) Subject: gallivm: Rename TargetInstrDesc to MCInstrDesc when using llvm-3.0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b61e56756c2d61a94a8dd90abb4dc83e0c0349ae;p=mesa.git gallivm: Rename TargetInstrDesc to MCInstrDesc when using llvm-3.0. llvm-3.0svn revision 134021 renamed TargetInstrDesc to MCInstrDesc. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index 0b724a34948..5036608b571 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -287,7 +287,11 @@ lp_disassemble(const void* func) pc += Size; +#if HAVE_LLVM >= 0x0300 + const MCInstrDesc &TID = TII->get(Inst.getOpcode()); +#else const TargetInstrDesc &TID = TII->get(Inst.getOpcode()); +#endif /* * Keep track of forward jumps to a nearby address.