gallivm: Rename TargetInstrDesc to MCInstrDesc when using llvm-3.0.
authorVinson Lee <vlee@vmware.com>
Thu, 30 Jun 2011 22:07:57 +0000 (15:07 -0700)
committerVinson Lee <vlee@vmware.com>
Thu, 30 Jun 2011 22:07:57 +0000 (15:07 -0700)
llvm-3.0svn revision 134021 renamed TargetInstrDesc to MCInstrDesc.

src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index 0b724a34948768be5ccb406b8c0375a5c098d3ea..5036608b571930486205bc0f749b04312bbeb5cc 100644 (file)
@@ -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.