Skip to content

Commit

Permalink
update MCAsmBackend creation for LLVM 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Mar 8, 2018
1 parent 4da380a commit 98bbedb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,10 @@ static void jl_dump_asm_internal(
MCAsmBackend *MAB = 0;
if (ShowEncoding) {
CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx);
#if JL_LLVM_VERSION >= 40000
#if JL_LLVM_VERSION >= 60000
MCTargetOptions Options;
MAB = TheTarget->createMCAsmBackend(*STI, *MRI, Options);
#elif JL_LLVM_VERSION >= 40000
MCTargetOptions Options;
MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, cpu, Options);
#else
Expand Down

0 comments on commit 98bbedb

Please sign in to comment.