[llvm-branch-commits] [llvm-branch] r73513 - /llvm/branches/Apple/llvm25-patched/lib/Bitcode/Reader/BitcodeReader.cpp

Tanya Lattner tonic at nondot.org
Tue Jun 16 10:34:29 PDT 2009


Author: tbrethou
Date: Tue Jun 16 12:34:29 2009
New Revision: 73513

URL: http://llvm.org/viewvc/llvm-project?rev=73513&view=rev
Log:
Merging r73470 from mainline.

Modified:
    llvm/branches/Apple/llvm25-patched/lib/Bitcode/Reader/BitcodeReader.cpp

Modified: llvm/branches/Apple/llvm25-patched/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/llvm25-patched/lib/Bitcode/Reader/BitcodeReader.cpp?rev=73513&r1=73512&r2=73513&view=diff

==============================================================================
--- llvm/branches/Apple/llvm25-patched/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/branches/Apple/llvm25-patched/lib/Bitcode/Reader/BitcodeReader.cpp Tue Jun 16 12:34:29 2009
@@ -2025,14 +2025,13 @@
 
 
 Module *BitcodeReader::materializeModule(std::string *ErrInfo) {
-  for (DenseMap<Function*, std::pair<uint64_t, unsigned> >::iterator I = 
-       DeferredFunctionInfo.begin(), E = DeferredFunctionInfo.end(); I != E;
-       ++I) {
-    Function *F = I->first;
+  // Iterate over the module, deserializing any functions that are still on
+  // disk.
+  for (Module::iterator F = TheModule->begin(), E = TheModule->end();
+       F != E; ++F)
     if (F->hasNotBeenReadFromBitcode() &&
         materializeFunction(F, ErrInfo))
       return 0;
-  }
 
   // Upgrade any intrinsic calls that slipped through (should not happen!) and 
   // delete the old functions to clean up. We can't do this unless the entire 
@@ -2107,7 +2106,7 @@
   // is run.
   if (M)
     M = R->releaseModule(ErrMsg);
-  
+   
   delete R;
   return M;
 }





More information about the llvm-branch-commits mailing list