forked from OSchip/llvm-project
Return the Module that we just materialized.
llvm-svn: 9201
This commit is contained in:
parent
d2bc5ac045
commit
de360f88c8
|
@ -19,10 +19,13 @@ ModuleProvider::~ModuleProvider() {
|
|||
|
||||
/// materializeFunction - make sure the given function is fully read.
|
||||
///
|
||||
void ModuleProvider::materializeModule() {
|
||||
if (!TheModule) return;
|
||||
Module* ModuleProvider::materializeModule() {
|
||||
// FIXME: throw an exception instead?
|
||||
if (!TheModule) return 0;
|
||||
|
||||
for (Module::iterator i = TheModule->begin(), e = TheModule->end();
|
||||
i != e; ++i)
|
||||
materializeFunction(i);
|
||||
|
||||
return TheModule;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue