mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
This commit is contained in:
@@ -124,7 +124,7 @@ static const LLType* rt_ptr(const LLType* t)
|
||||
|
||||
static const LLType* rt_array(const LLType* elemty)
|
||||
{
|
||||
return llvm::StructType::get(DtoSize_t(), rt_ptr(elemty), NULL);
|
||||
return llvm::StructType::get(gIR->context(), DtoSize_t(), rt_ptr(elemty), NULL);
|
||||
}
|
||||
|
||||
static const LLType* rt_dg1()
|
||||
@@ -133,7 +133,7 @@ static const LLType* rt_dg1()
|
||||
types.push_back(rt_ptr(LLType::Int8Ty));
|
||||
types.push_back(rt_ptr(LLType::Int8Ty));
|
||||
const llvm::FunctionType* fty = llvm::FunctionType::get(LLType::Int32Ty, types, false);
|
||||
return llvm::StructType::get(rt_ptr(LLType::Int8Ty), rt_ptr(fty), NULL);
|
||||
return llvm::StructType::get(gIR->context(), rt_ptr(LLType::Int8Ty), rt_ptr(fty), NULL);
|
||||
}
|
||||
|
||||
static const LLType* rt_dg2()
|
||||
@@ -143,7 +143,7 @@ static const LLType* rt_dg2()
|
||||
types.push_back(rt_ptr(LLType::Int8Ty));
|
||||
types.push_back(rt_ptr(LLType::Int8Ty));
|
||||
const llvm::FunctionType* fty = llvm::FunctionType::get(LLType::Int32Ty, types, false);
|
||||
return llvm::StructType::get(rt_ptr(LLType::Int8Ty), rt_ptr(fty), NULL);
|
||||
return llvm::StructType::get(gIR->context(), rt_ptr(LLType::Int8Ty), rt_ptr(fty), NULL);
|
||||
}
|
||||
|
||||
static void LLVM_D_BuildRuntimeModule()
|
||||
@@ -169,9 +169,9 @@ static void LLVM_D_BuildRuntimeModule()
|
||||
else
|
||||
realTy = LLType::DoubleTy;
|
||||
|
||||
const LLType* cfloatTy = llvm::StructType::get(floatTy, floatTy, NULL);
|
||||
const LLType* cdoubleTy = llvm::StructType::get(doubleTy, doubleTy, NULL);
|
||||
const LLType* crealTy = llvm::StructType::get(realTy, realTy, NULL);
|
||||
const LLType* cfloatTy = llvm::StructType::get(gIR->context(), floatTy, floatTy, NULL);
|
||||
const LLType* cdoubleTy = llvm::StructType::get(gIR->context(), doubleTy, doubleTy, NULL);
|
||||
const LLType* crealTy = llvm::StructType::get(gIR->context(), realTy, realTy, NULL);
|
||||
|
||||
Logger::println("building aggr types");
|
||||
const LLType* voidPtrTy = rt_ptr(byteTy);
|
||||
|
||||
Reference in New Issue
Block a user