[llvm-commits] CVS: llvm/lib/VMCore/ModuleProvider.cpp
Misha Brukman
brukman at cs.uiuc.edu
Fri Oct 17 13:28:51 PDT 2003
Changes in directory llvm/lib/VMCore:
ModuleProvider.cpp updated: 1.3 -> 1.4
---
Log message:
Return the Module that we just materialized.
---
Diffs of the changes: (+5 -2)
Index: llvm/lib/VMCore/ModuleProvider.cpp
diff -u llvm/lib/VMCore/ModuleProvider.cpp:1.3 llvm/lib/VMCore/ModuleProvider.cpp:1.4
--- llvm/lib/VMCore/ModuleProvider.cpp:1.3 Sat Oct 4 15:14:59 2003
+++ llvm/lib/VMCore/ModuleProvider.cpp Fri Oct 17 13:27:13 2003
@@ -19,10 +19,13 @@
/// 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;
}
More information about the llvm-commits
mailing list