gallivm: change sys::getHostTriple to sys::getDefaultTargetTriple for LLVM >= 0x0301
authorChristian Inci <chris.pcguy.inci@gmail.com>
Sun, 6 Nov 2011 07:32:54 +0000 (07:32 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 6 Nov 2011 07:41:10 +0000 (07:41 +0000)
LLVM change r143502

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index f44749d..b685c08 100644 (file)
@@ -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);