Skip to content

Commit

Permalink
adjust version bounds for LLVM10
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Mar 27, 2020
1 parent e4372df commit 614f644
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ addPassesToGenerateCode(LLVMTargetMachine *TM, PassManagerBase &PM) {
TargetPassConfig *PassConfig = TM->createPassConfig(PM);
PassConfig->setDisableVerify(false);
PM.add(PassConfig);
#if JL_LLVM_VERSION >= 110000
#if JL_LLVM_VERSION >= 100000
MachineModuleInfoWrapperPass *MMIWP =
new MachineModuleInfoWrapperPass(TM);
PM.add(MMIWP);
Expand All @@ -860,7 +860,7 @@ addPassesToGenerateCode(LLVMTargetMachine *TM, PassManagerBase &PM) {
return NULL;
PassConfig->addMachinePasses();
PassConfig->setInitialized();
#if JL_LLVM_VERSION >= 110000
#if JL_LLVM_VERSION >= 100000
return &MMIWP->getMMI().getContext();
#else
return &MMI->getContext();
Expand Down Expand Up @@ -905,7 +905,7 @@ jl_value_t *jl_dump_llvm_asm(void *F, const char* asm_variant, const char *debug
std::unique_ptr<MCAsmBackend> MAB(TM->getTarget().createMCAsmBackend(
STI, MRI, TM->Options.MCOptions));
std::unique_ptr<MCCodeEmitter> MCE;
#if JL_LLVM_VERSION >= 110000
#if JL_LLVM_VERSION >= 100000
auto FOut = std::make_unique<formatted_raw_ostream>(asmfile);
#else
auto FOut = llvm::make_unique<formatted_raw_ostream>(asmfile);
Expand Down

0 comments on commit 614f644

Please sign in to comment.