mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
Drop support for LLVM < 3.7
This commit is contained in:
parent
4e174ff19c
commit
1fb269f940
72 changed files with 98 additions and 3862 deletions
|
@ -34,9 +34,7 @@ void emitCoverageLinecountInc(Loc &loc) {
|
|||
// Get GEP into _d_cover_data array
|
||||
LLConstant *idxs[] = {DtoConstUint(0), DtoConstUint(line)};
|
||||
LLValue *ptr = llvm::ConstantExpr::getGetElementPtr(
|
||||
#if LDC_LLVM_VER >= 307
|
||||
LLArrayType::get(LLType::getInt32Ty(gIR->context()), m->numlines),
|
||||
#endif
|
||||
m->d_cover_data, idxs, true);
|
||||
|
||||
// Do an atomic increment, so this works when multiple threads are executed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue