Raise min LLVM version to 3.9 (#2872)

This commit is contained in:
Martin Kinkelin 2018-10-15 22:31:59 +02:00 committed by GitHub
parent 18bbaa1895
commit 5c24f60cf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
77 changed files with 83 additions and 4146 deletions

View file

@ -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