Skip to content
Snippets Groups Projects
Commit ba3c6702 authored by Misha Brukman's avatar Misha Brukman
Browse files

Implement ModuleProvider::materializeModule() by only materializing functions

that are still left in the lazy reader map.

llvm-svn: 10944
parent 2cbec5de
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,16 @@ public:
freeTable(ModuleValues);
}
Module* materializeModule() {
while (! LazyFunctionLoadMap.empty()) {
std::map<Function*, LazyFunctionInfo>::iterator i =
LazyFunctionLoadMap.begin();
materializeFunction((*i).first);
}
return TheModule;
}
Module* releaseModule() {
// Since we're losing control of this Module, we must hand it back complete
Module *M = ModuleProvider::releaseModule();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment