mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Let subclasses implement ModuleProvider::materializeModule() which is based on
their implementation of book-keeping for which functions need to be materialized and which don't. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0039e25a4
commit
ce218c6492
@ -24,15 +24,3 @@ ModuleProvider::ModuleProvider() : TheModule(0) { }
|
||||
ModuleProvider::~ModuleProvider() {
|
||||
delete TheModule;
|
||||
}
|
||||
|
||||
/// materializeFunction - make sure the given function is fully read.
|
||||
///
|
||||
Module* ModuleProvider::materializeModule() {
|
||||
assert(TheModule && "Attempting to materialize an invalid module!");
|
||||
|
||||
for (Module::iterator i = TheModule->begin(), e = TheModule->end();
|
||||
i != e; ++i)
|
||||
materializeFunction(i);
|
||||
|
||||
return TheModule;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user