mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
Dematerialize the source functions after we're done with them. This saves a bit
of memory during LTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1226,6 +1226,7 @@ bool ModuleLinker::run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
linkFunctionBody(cast<Function>(ValueMap[SF]), SF);
|
linkFunctionBody(cast<Function>(ValueMap[SF]), SF);
|
||||||
|
SF->Dematerialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resolve all uses of aliases with aliasees.
|
// Resolve all uses of aliases with aliasees.
|
||||||
@@ -1265,7 +1266,8 @@ bool ModuleLinker::run() {
|
|||||||
|
|
||||||
// Link in function body.
|
// Link in function body.
|
||||||
linkFunctionBody(DF, SF);
|
linkFunctionBody(DF, SF);
|
||||||
|
SF->Dematerialize();
|
||||||
|
|
||||||
// "Remove" from vector by setting the element to 0.
|
// "Remove" from vector by setting the element to 0.
|
||||||
*I = 0;
|
*I = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user