From: Michel Dänzer Date: Tue, 31 Mar 2015 06:05:01 +0000 (+0900) Subject: gallivm: Fix build against LLVM 3.7 SVN r233648 X-Git-Tag: android-x86-6.0-r1~10961 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b8797a78752daf9e1d4c06d5555a81efea4bb85a;p=android-x86%2Fexternal-mesa.git gallivm: Fix build against LLVM 3.7 SVN r233648 Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index d4d453d2615..65d289689f8 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -256,8 +256,13 @@ disassemble(const void* func, llvm::raw_ostream & Out) } +#if HAVE_LLVM >= 0x0307 + OwningPtr Printer( + T->createMCInstPrinter(llvm::Triple(Triple), AsmPrinterVariant, *AsmInfo, *MII, *MRI)); +#else OwningPtr Printer( T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *MII, *MRI, *STI)); +#endif if (!Printer) { Out << "error: no instruction printer for target " << Triple.c_str() << "\n"; Out.flush();