projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55c0f02
)
Return the Module that we just materialized.
author
Misha Brukman
<brukman+llvm@gmail.com>
Fri, 17 Oct 2003 18:27:13 +0000
(18:27 +0000)
committer
Misha Brukman
<brukman+llvm@gmail.com>
Fri, 17 Oct 2003 18:27:13 +0000
(18:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9201
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/ModuleProvider.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/ModuleProvider.cpp
b/lib/VMCore/ModuleProvider.cpp
index 3a9c50528e2ce95704e12b0e284dd97462f83bfd..7add84b0cb66912208661bafa35341f7467b9f3a 100644
(file)
--- a/
lib/VMCore/ModuleProvider.cpp
+++ b/
lib/VMCore/ModuleProvider.cpp
@@
-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;
}