mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
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:
parent
55c0f02cbf
commit
7f3df4150c
@ -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
Block a user