aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode
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
commit18549c25d60f5abd4e8620ef3a04fe69c40cbe6b (patch)
treeaa8067964c00bd19a16df61c0784c85e3d5c2080 /lib/Bytecode
parent226b72672e023ceb2e007a35cd64dc2571016483 (diff)
Make functions default to having external linkage if they have no
FunctionBlock. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index e83228d74a..65d4c1c15d 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/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);