Implement ModuleProvider::materializeModule() by only materializing functions
that are still left in the lazy reader map. llvm-svn: 10944
This commit is contained in:
parent
2cbec5de52
commit
ba3c670292
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue