summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-03-31 15:05:01 +0900
committerMichel Dänzer <michel@daenzer.net>2015-03-31 15:05:01 +0900
commitb8797a78752daf9e1d4c06d5555a81efea4bb85a (patch)
tree5b11ac784bf53c406faab6118dcc47180f327438 /src
parent1dcc1ee314a6907213e2abd5337ec0bbba3bd1bf (diff)
downloadexternal_mesa3d-b8797a78752daf9e1d4c06d5555a81efea4bb85a.zip
external_mesa3d-b8797a78752daf9e1d4c06d5555a81efea4bb85a.tar.gz
external_mesa3d-b8797a78752daf9e1d4c06d5555a81efea4bb85a.tar.bz2
gallivm: Fix build against LLVM 3.7 SVN r233648
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp5
1 files changed, 5 insertions, 0 deletions
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();