Return the Module that we just materialized.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2003-10-17 18:27:13 +00:00
parent 55c0f02cbf
commit 7f3df4150c

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