summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-07 06:22:16 +0000
committerChris Lattner <sabre@nondot.org>2006-01-07 06:22:16 +0000
commit1185e73cc9fd69b1bc9fa053149402da019f247e (patch)
tree5b3f822e255cb13dafbfd68374cc2b5e25c25613 /llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
parent2e8b93ac46ba3173b2760736dba785161eb906ba (diff)
downloadbcm5719-llvm-1185e73cc9fd69b1bc9fa053149402da019f247e.tar.gz
bcm5719-llvm-1185e73cc9fd69b1bc9fa053149402da019f247e.zip
Fix the PPC JIT failures last night, which were due to mishandling of linkonce globals
llvm-svn: 25141
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp b/llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
index 95f84ebe742..bda49a8095a 100644
--- a/llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
@@ -194,6 +194,7 @@ int PPCCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
} else if (MO.isGlobalAddress() || MO.isExternalSymbol()) {
bool isExternal = MO.isExternalSymbol() ||
MO.getGlobal()->hasWeakLinkage() ||
+ MO.getGlobal()->hasLinkOnceLinkage() ||
MO.getGlobal()->isExternal();
unsigned Reloc = 0;
if (MI.getOpcode() == PPC::BL)
OpenPOWER on IntegriCloud