diff options
Diffstat (limited to 'lib/Bytecode')
| -rw-r--r-- | lib/Bytecode/Reader/ReaderInternals.h | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h index f5ef3d90b6..ff28e25db6 100644 --- a/lib/Bytecode/Reader/ReaderInternals.h +++ b/lib/Bytecode/Reader/ReaderInternals.h @@ -55,6 +55,16 @@ public:      freeTable(ModuleValues);    } +  Module* materializeModule() { +    while (! LazyFunctionLoadMap.empty()) { +      std::map<Function*, LazyFunctionInfo>::iterator i =  +        LazyFunctionLoadMap.begin(); +      materializeFunction((*i).first); +    } + +    return TheModule; +  } +    Module* releaseModule() {      // Since we're losing control of this Module, we must hand it back complete      Module *M = ModuleProvider::releaseModule();  | 
