Revert patch. It broke the build.
authorBill Wendling <isanbard@gmail.com>
Fri, 23 Mar 2012 07:21:18 +0000 (07:21 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 23 Mar 2012 07:21:18 +0000 (07:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153314 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index dca523c7ab18e3bfe4f5ac9cdb4bb49eb291641c..02905bc33973d447bb478e7b2c0b0afea4b43e03 100644 (file)
@@ -1226,7 +1226,6 @@ bool ModuleLinker::run() {
     }
     
     linkFunctionBody(cast<Function>(ValueMap[SF]), SF);
-    SF->Dematerialize();
   }
 
   // Resolve all uses of aliases with aliasees.
@@ -1266,8 +1265,7 @@ bool ModuleLinker::run() {
         
         // Link in function body.
         linkFunctionBody(DF, SF);
-        SF->Dematerialize();
-
+        
         // "Remove" from vector by setting the element to 0.
         *I = 0;