Mesa (master): gallivm: change sys::getHostTriple to sys:: getDefaultTargetTriple for LLVM >= 0x0301

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sun Nov 6 07:46:29 UTC 2011


Module: Mesa
Branch: master
Commit: 3031708e648a39d1bb4c0b2b4f8fa80be7619267
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3031708e648a39d1bb4c0b2b4f8fa80be7619267

Author: Christian Inci <chris.pcguy.inci at gmail.com>
Date:   Sun Nov  6 07:32:54 2011 +0000

gallivm: change sys::getHostTriple to sys::getDefaultTargetTriple for LLVM >= 0x0301

LLVM change r143502

Signed-off-by: José Fonseca <jose.r.fonseca at gmail.com>

---

 src/gallium/auxiliary/gallivm/lp_bld_debug.cpp |    4 ++++
 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);




More information about the mesa-commit mailing list