summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
diff options
context:
space:
mode:
authorChristian Inci <chris.pcguy.inci@gmail.com>2011-11-06 07:32:54 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-11-06 07:41:10 +0000
commit3031708e648a39d1bb4c0b2b4f8fa80be7619267 (patch)
tree955b0f3950d4ce83772e7b8a2dad77c73b1ebca5 /src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
parentadb7f1351e4c231184a6355573c01c7780135342 (diff)
downloadexternal_mesa3d-3031708e648a39d1bb4c0b2b4f8fa80be7619267.zip
external_mesa3d-3031708e648a39d1bb4c0b2b4f8fa80be7619267.tar.gz
external_mesa3d-3031708e648a39d1bb4c0b2b4f8fa80be7619267.tar.bz2
gallivm: change sys::getHostTriple to sys::getDefaultTargetTriple for LLVM >= 0x0301
LLVM change r143502 Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
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 f44749d..b685c08 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -186,7 +186,11 @@ lp_disassemble(const void* func)
* Initialize all used objects.
*/
+#if HAVE_LLVM >= 0x0301
+ std::string Triple = sys::getDefaultTargetTriple();
+#else
std::string Triple = sys::getHostTriple();
+#endif
std::string Error;
const Target *T = TargetRegistry::lookupTarget(Triple, Error);