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:48:41 -0700
committerVinson Lee <vlee@vmware.com>2011-06-30 15:48:41 -0700
commitf8fcaf0215f0434baf13bb5c45545c58f97846b6 (patch)
tree963747456c9dac2a6bf89bcb4353d80919a5b0d4 /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
parentb61e56756c2d61a94a8dd90abb4dc83e0c0349ae (diff)
downloadexternal_mesa3d-f8fcaf0215f0434baf13bb5c45545c58f97846b6.zip
external_mesa3d-f8fcaf0215f0434baf13bb5c45545c58f97846b6.tar.gz
external_mesa3d-f8fcaf0215f0434baf13bb5c45545c58f97846b6.tar.bz2
gallivm: Pass in CPU name to createTargetMachine when on llvm-3.0.
llvm-3.0svn revision 134127 changed createTargetMachine to take in an additional argument of the CPU name.
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 5036608..01e660e 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -207,7 +207,11 @@ lp_disassemble(const void* func)
}
raw_debug_ostream Out;
+#if HAVE_LLVM >= 0x0300
+ TargetMachine *TM = T->createTargetMachine(Triple, sys::getHostCPUName(), "");
+#else
TargetMachine *TM = T->createTargetMachine(Triple, "");
+#endif
#if HAVE_LLVM >= 0x0300
unsigned int AsmPrinterVariant = AsmInfo->getAssemblerDialect();