mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Implement ModuleProvider::materializeModule() by only materializing functions
that are still left in the lazy reader map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -55,6 +55,16 @@ public:
|
|||||||
freeTable(ModuleValues);
|
freeTable(ModuleValues);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Module* materializeModule() {
|
||||||
|
while (! LazyFunctionLoadMap.empty()) {
|
||||||
|
std::map<Function*, LazyFunctionInfo>::iterator i =
|
||||||
|
LazyFunctionLoadMap.begin();
|
||||||
|
materializeFunction((*i).first);
|
||||||
|
}
|
||||||
|
|
||||||
|
return TheModule;
|
||||||
|
}
|
||||||
|
|
||||||
Module* releaseModule() {
|
Module* releaseModule() {
|
||||||
// Since we're losing control of this Module, we must hand it back complete
|
// Since we're losing control of this Module, we must hand it back complete
|
||||||
Module *M = ModuleProvider::releaseModule();
|
Module *M = ModuleProvider::releaseModule();
|
||||||
|
Reference in New Issue
Block a user