mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Move function codegen data from IrFunction to new FuncGen.
This change reduces memory consumption significantly by releasing the memory held by the STL containers that are now inside FuncGen.
This commit is contained in:
parent
7dbe9baa37
commit
42b3da8ac7
7 changed files with 138 additions and 124 deletions
|
@ -774,7 +774,10 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
|||
}
|
||||
|
||||
// output function body
|
||||
irfunction->gen = new FuncGen;
|
||||
fd->fbody->toIR(gIR);
|
||||
delete irfunction->gen;
|
||||
irfunction->gen = 0;
|
||||
|
||||
// TODO: clean up this mess
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue