From: Misha Brukman Date: Wed, 21 Jan 2004 22:54:50 +0000 (+0000) Subject: Let subclasses implement ModuleProvider::materializeModule() which is based on X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ce218c6492de45bf466cbc55badc4b9978bb5530;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/ModuleProvider.cpp b/lib/VMCore/ModuleProvider.cpp index 12a4fe6f25d..2b06c1145ad 100644 --- a/lib/VMCore/ModuleProvider.cpp +++ b/lib/VMCore/ModuleProvider.cpp @@ -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; -}