From 3031708e648a39d1bb4c0b2b4f8fa80be7619267 Mon Sep 17 00:00:00 2001 From: Christian Inci Date: Sun, 6 Nov 2011 07:32:54 +0000 Subject: [PATCH] gallivm: change sys::getHostTriple to sys::getDefaultTargetTriple for LLVM >= 0x0301 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LLVM change r143502 Signed-off-by: José Fonseca --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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);