mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26:02 +03:00
Adapt jit-rt to LLVM 9
This commit is contained in:
parent
030123410a
commit
0ab79c1950
3 changed files with 14 additions and 1 deletions
|
@ -138,7 +138,9 @@ void addOptimizationPasses(llvm::legacy::PassManagerBase &mpm,
|
|||
builder.Inliner = llvm::createAlwaysInlinerPass();
|
||||
#endif
|
||||
}
|
||||
#if LDC_LLVM_VER < 900
|
||||
builder.DisableUnitAtATime = false;
|
||||
#endif
|
||||
|
||||
builder.DisableUnrollLoops = (disableLoopUnrolling.getNumOccurrences() > 0)
|
||||
? disableLoopUnrolling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue