summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 f44749d63ab..b685c087370 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);