summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2010-05-08 21:55:04 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2010-05-08 21:55:04 +0000
commit2ec6cff9d05383a88a6c5f78952993247f5c4f01 (patch)
tree1a4052ee8d324c8272871ef8a99b2816ce53644f
parent02b0df5338e09f0eaee411d7719af7bfb244edc6 (diff)
downloadbcm5719-llvm-2ec6cff9d05383a88a6c5f78952993247f5c4f01.tar.gz
bcm5719-llvm-2ec6cff9d05383a88a6c5f78952993247f5c4f01.zip
Fixed linkage problem from last commit (GNU runtime).
llvm-svn: 103355
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index e39769d9477..ca9f16c4512 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -1670,7 +1670,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
llvm::Constant *Idxs[] = {Zeros[0],
llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), index++), Zeros[0]};
llvm::Constant *SelPtr = new llvm::GlobalVariable(TheModule, SelStructPtrTy,
- true, llvm::GlobalValue::LinkOnceAnyLinkage,
+ true, llvm::GlobalValue::LinkOnceODRLinkage,
llvm::ConstantExpr::getGetElementPtr(SelectorList, Idxs, 2),
".objc_sel_ptr"+iter->first.first+"."+MangleSelectorTypes(iter->first.second));
// If selectors are defined as an opaque type, cast the pointer to this
@@ -1688,7 +1688,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
llvm::Constant *Idxs[] = {Zeros[0],
llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), index++), Zeros[0]};
llvm::Constant *SelPtr = new llvm::GlobalVariable(TheModule, SelStructPtrTy,
- true, llvm::GlobalValue::LinkOnceAnyLinkage,
+ true, llvm::GlobalValue::LinkOnceODRLinkage,
llvm::ConstantExpr::getGetElementPtr(SelectorList, Idxs, 2),
".objc_sel_ptr"+iter->getKey());
// If selectors are defined as an opaque type, cast the pointer to this
OpenPOWER on IntegriCloud