mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-13 06:28:52 +03:00
Raise min LLVM version to 3.9 (#2872)
This commit is contained in:
parent
18bbaa1895
commit
5c24f60cf9
77 changed files with 83 additions and 4146 deletions
|
@ -187,11 +187,7 @@ static void insertBitcodeIntoModule(const char *bcFile, llvm::Module &M,
|
|||
error(Loc(), "Error when loading LLVM bitcode file: %s", bcFile);
|
||||
fatal();
|
||||
}
|
||||
#if LDC_LLVM_VER >= 308
|
||||
llvm::Linker(M).linkInModule(std::move(loadedModule));
|
||||
#else
|
||||
llvm::Linker(&M).linkInModule(loadedModule.release());
|
||||
#endif
|
||||
}
|
||||
|
||||
/// Insert LLVM bitcode files into the module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue