Make functions default to having external linkage if they have no
FunctionBlock.
llvm-svn: 17853
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index e83228d..65d4c1c 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/lib/Bytecode/Reader/Reader.cpp
@@ -1880,8 +1880,8 @@
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);