Skip to content

Commit

Permalink
Merge pull request JuliaLang#10511 from samuelpowell/master
Browse files Browse the repository at this point in the history
Fix build against LLVM post r231861 (JuliaLang#10509)
  • Loading branch information
Keno committed Mar 13, 2015
2 parents d87e303 + 2dfaa71 commit 9cd496e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@ void jl_dump_function_asm(uintptr_t Fptr, size_t Fsize, size_t slide,
MCCodeEmitter *CE = 0;
MCAsmBackend *MAB = 0;
if (ShowEncoding) {
#ifdef LLVM37
CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx);
#else
CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
#endif
#ifdef LLVM34
MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, MCPU);
#else
Expand Down

0 comments on commit 9cd496e

Please sign in to comment.