mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-01 20:10:04 +02:00
Remove unused, empty Ir type.
The codegen parameter was changed to IRState instead of removing it to set the stage for an eventual eradication of the gIR global.
This commit is contained in:
@@ -2551,7 +2551,7 @@ DValue* DelegateExp::toElem(IRState* p)
|
||||
owner = owner->toParent();
|
||||
if (owner->isTemplateInstance() || owner == p->dmodule)
|
||||
{
|
||||
func->codegen(Type::sir);
|
||||
func->codegen(p);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2800,7 +2800,7 @@ DValue* FuncExp::toElem(IRState* p)
|
||||
|
||||
// We need to actually codegen the function here, as literals are not added
|
||||
// to the module member list.
|
||||
fd->codegen(Type::sir);
|
||||
fd->codegen(p);
|
||||
assert(fd->ir.irFunc->func);
|
||||
|
||||
if (fd->isNested()) {
|
||||
@@ -2869,7 +2869,7 @@ LLConstant* FuncExp::toConstElem(IRState* p)
|
||||
|
||||
// We need to actually codegen the function here, as literals are not added
|
||||
// to the module member list.
|
||||
fd->codegen(Type::sir);
|
||||
fd->codegen(p);
|
||||
assert(fd->ir.irFunc->func);
|
||||
|
||||
return fd->ir.irFunc->func;
|
||||
|
||||
Reference in New Issue
Block a user