summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-15 21:43:03 +0000
committerChris Lattner <sabre@nondot.org>2004-11-15 21:43:03 +0000
commit55d85402f6de4e91478ca21ff920fe9c17acdef3 (patch)
tree941de2c99e8070bdc4c0e0f22b9b565a4e494d23 /llvm/lib/Bytecode/Reader
parent16d3f968ba9e414656c20f99703af1fb8f368e86 (diff)
downloadbcm5719-llvm-55d85402f6de4e91478ca21ff920fe9c17acdef3.tar.gz
bcm5719-llvm-55d85402f6de4e91478ca21ff920fe9c17acdef3.zip
Make functions default to having external linkage if they have no
FunctionBlock. llvm-svn: 17853
Diffstat (limited to 'llvm/lib/Bytecode/Reader')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index e83228d74a5..65d4c1c15d7 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/lib/Bytecode/Reader/Reader.cpp
@@ -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);
OpenPOWER on IntegriCloud