aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ModuleProvider.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-01-21 22:54:50 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-01-21 22:54:50 +0000
commitce218c6492de45bf466cbc55badc4b9978bb5530 (patch)
tree25f91cd93b4706fbf4993891bc9ec7e3a550f755 /lib/VMCore/ModuleProvider.cpp
parentc0039e25a497d2aebf53eb61204ba5d72dd4fc0b (diff)
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
Diffstat (limited to 'lib/VMCore/ModuleProvider.cpp')
-rw-r--r--lib/VMCore/ModuleProvider.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/VMCore/ModuleProvider.cpp b/lib/VMCore/ModuleProvider.cpp
index 12a4fe6f25..2b06c1145a 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;
-}