From: Vinson Lee Date: Mon, 13 May 2013 03:37:17 +0000 (-0700) Subject: gallivm: Fix build with LLVM >= 3.4 r181680. X-Git-Tag: mesa-9.2.1~1184 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F6594%2F1;p=platform%2Fupstream%2Fmesa.git gallivm: Fix build with LLVM >= 3.4 r181680. Tested-by: Laurent Carlier Signed-off-by: Vinson Lee --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index 86617d4..1c886ea 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -212,7 +212,9 @@ disassemble(const void* func, llvm::raw_ostream & Out) std::string Error; const Target *T = TargetRegistry::lookupTarget(Triple, Error); -#if HAVE_LLVM >= 0x0300 +#if HAVE_LLVM >= 0x0304 + OwningPtr AsmInfo(T->createMCAsmInfo(*T->createMCRegInfo(Triple), Triple)); +#elif HAVE_LLVM >= 0x0300 OwningPtr AsmInfo(T->createMCAsmInfo(Triple)); #else OwningPtr AsmInfo(T->createAsmInfo(Triple));