Created
October 18, 2013 16:51
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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