mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-12 05:47:11 +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
|
@ -7,8 +7,6 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if LDC_LLVM_VER >= 308
|
||||
|
||||
#include "target.h"
|
||||
#include "gen/ms-cxx-helper.h"
|
||||
#include "gen/llvm.h"
|
||||
|
@ -63,12 +61,8 @@ void remapBlocks(std::vector<llvm::BasicBlock *> &blocks,
|
|||
for (llvm::BasicBlock *bb : blocks)
|
||||
for (auto &I : *bb) {
|
||||
llvm::RemapInstruction(&I, VMap,
|
||||
#if LDC_LLVM_VER == 308
|
||||
llvm::RF_IgnoreMissingEntries
|
||||
#else
|
||||
llvm::RF_IgnoreMissingLocals
|
||||
#endif
|
||||
| llvm::RF_NoModuleLevelChanges);
|
||||
llvm::RF_IgnoreMissingLocals |
|
||||
llvm::RF_NoModuleLevelChanges);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -196,5 +190,3 @@ llvm::GlobalVariable *getTypeDescriptor(IRState &irs, ClassDeclaration *cd) {
|
|||
|
||||
return Var;
|
||||
}
|
||||
|
||||
#endif // LDC_LLVM_VER >= 308
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue