mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 23:50:43 +03:00
Drop support for LLVM < 3.5
This allows to clean up the code a little.
This commit is contained in:
parent
8eab25f2fa
commit
60d676e2a1
57 changed files with 35 additions and 1019 deletions
|
@ -37,7 +37,6 @@
|
|||
#include "llvm/Transforms/Utils/ModuleUtils.h"
|
||||
#include <stack>
|
||||
|
||||
#if LDC_LLVM_VER >= 302
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
llvm::cl::opt<llvm::GlobalVariable::ThreadLocalMode> clThreadModel("fthread-model",
|
||||
|
@ -53,7 +52,6 @@ llvm::cl::opt<llvm::GlobalVariable::ThreadLocalMode> clThreadModel("fthread-mode
|
|||
clEnumValN(llvm::GlobalVariable::LocalExecTLSModel, "local-exec",
|
||||
"Local exec TLS model"),
|
||||
clEnumValEnd));
|
||||
#endif
|
||||
|
||||
Type *getTypeInfoType(Type *t, Scope *sc);
|
||||
|
||||
|
@ -1781,7 +1779,6 @@ llvm::GlobalVariable* getOrCreateGlobal(Loc& loc, llvm::Module& module,
|
|||
return existing;
|
||||
}
|
||||
|
||||
#if LDC_LLVM_VER >= 302
|
||||
// Use a command line option for the thread model.
|
||||
// On PPC there is only local-exec available - in this case just ignore the
|
||||
// command line.
|
||||
|
@ -1793,10 +1790,6 @@ llvm::GlobalVariable* getOrCreateGlobal(Loc& loc, llvm::Module& module,
|
|||
: llvm::GlobalVariable::NotThreadLocal;
|
||||
return new llvm::GlobalVariable(module, type, isConstant, linkage,
|
||||
init, name, 0, tlsModel);
|
||||
#else
|
||||
return new llvm::GlobalVariable(module, type, isConstant, linkage,
|
||||
init, name, 0, isThreadLocal);
|
||||
#endif
|
||||
}
|
||||
|
||||
FuncDeclaration* getParentFunc(Dsymbol* sym, bool stopOnStatic)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue