Skip to content

Instantly share code, notes, and snippets.

@ArchRobison
Created October 18, 2013 16:51
Show Gist options
  • Save ArchRobison/7044371 to your computer and use it in GitHub Desktop.
Save ArchRobison/7044371 to your computer and use it in GitHub Desktop.
Diff to make Julia compile with "llvm-project - Revision 192983: /llvm/trunk" (https://llvm.org/svn/llvm-project/llvm/trunk/ on 2013-10-18)
diff --git a/src/disasm.cpp b/src/disasm.cpp
index 3dec882..cd67f06 100644
--- a/src/disasm.cpp
+++ b/src/disasm.cpp
@@ -132,7 +132,11 @@ void jl_dump_function_asm(void* Fptr, size_t Fsize,
MCAsmBackend *MAB = 0;
if (ShowEncoding) {
CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
+#ifdef LLVM34
+ MAB = TheTarget->createMCAsmBackend(*MRI,TripleName, MCPU);
+#else
MAB = TheTarget->createMCAsmBackend(TripleName, MCPU);
+#endif
}
Streamer.reset(TheTarget->createAsmStreamer(Ctx, stream, /*asmverbose*/true,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment