summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2011-06-30 15:07:57 -0700
committerVinson Lee <vlee@vmware.com>2011-06-30 15:07:57 -0700
commitb61e56756c2d61a94a8dd90abb4dc83e0c0349ae (patch)
treeeb576266d6f4ec75e6d1d891b75621e6180887d3 /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
parent47362c2a6180e7d6db4f1d4a6a9b8920a3d8dd82 (diff)
downloadexternal_mesa3d-b61e56756c2d61a94a8dd90abb4dc83e0c0349ae.zip
external_mesa3d-b61e56756c2d61a94a8dd90abb4dc83e0c0349ae.tar.gz
external_mesa3d-b61e56756c2d61a94a8dd90abb4dc83e0c0349ae.tar.bz2
gallivm: Rename TargetInstrDesc to MCInstrDesc when using llvm-3.0.
llvm-3.0svn revision 134021 renamed TargetInstrDesc to MCInstrDesc.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 0b724a3..5036608 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.