Mesa (master): gallivm: Fix build against LLVM 3.7 SVN r233648
Michel Dänzer
daenzer at kemper.freedesktop.org
Tue Mar 31 08:40:48 UTC 2015
Module: Mesa
Branch: master
Commit: b8797a78752daf9e1d4c06d5555a81efea4bb85a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8797a78752daf9e1d4c06d5555a81efea4bb85a
Author: Michel Dänzer <michel.daenzer at amd.com>
Date: Tue Mar 31 15:05:01 2015 +0900
gallivm: Fix build against LLVM 3.7 SVN r233648
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index d4d453d..65d2896 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<MCInstPrinter> Printer(
+ T->createMCInstPrinter(llvm::Triple(Triple), AsmPrinterVariant, *AsmInfo, *MII, *MRI));
+#else
OwningPtr<MCInstPrinter> Printer(
T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *MII, *MRI, *STI));
+#endif
if (!Printer) {
Out << "error: no instruction printer for target " << Triple.c_str() << "\n";
Out.flush();
More information about the mesa-commit
mailing list