Revert patch. It broke the build.

llvm-svn: 153314
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index dca523c..02905bc 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -1226,7 +1226,6 @@
     }
     
     linkFunctionBody(cast<Function>(ValueMap[SF]), SF);
-    SF->Dematerialize();
   }
 
   // Resolve all uses of aliases with aliasees.
@@ -1266,8 +1265,7 @@
         
         // Link in function body.
         linkFunctionBody(DF, SF);
-        SF->Dematerialize();
-
+        
         // "Remove" from vector by setting the element to 0.
         *I = 0;