Make functions default to having external linkage if they have no
authorChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2004 21:43:03 +0000 (21:43 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2004 21:43:03 +0000 (21:43 +0000)
FunctionBlock.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17853 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index e83228d74a5ca4607c9434723a80169b116f1366..65d4c1c15d7d89d60e0680b2416733bb3203e5aa 100644 (file)
@@ -1880,8 +1880,8 @@ void BytecodeReader::ParseModuleGlobalInfo() {
       cast<FunctionType>(cast<PointerType>(Ty)->getElementType());
 
 
-    // Insert the place hodler
-    Function* Func = new Function(FTy, GlobalValue::InternalLinkage, 
+    // Insert the place holder.
+    Function* Func = new Function(FTy, GlobalValue::ExternalLinkage, 
                                   "", TheModule);
     insertValue(Func, FnSignature >> 5, ModuleValues);