Return the Module that we just materialized.

llvm-svn: 9201
This commit is contained in:
Misha Brukman 2003-10-17 18:27:13 +00:00
parent d2bc5ac045
commit de360f88c8
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}