From: Chris Lattner Date: Sat, 7 Jan 2006 06:22:16 +0000 (+0000) Subject: Fix the PPC JIT failures last night, which were due to mishandling of linkonce globals X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5fe0e28650dd49f290fce2b80c0052fbc12d2385;p=oota-llvm.git Fix the PPC JIT failures last night, which were due to mishandling of linkonce globals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25141 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCCodeEmitter.cpp b/lib/Target/PowerPC/PPCCodeEmitter.cpp index 95f84ebe742..bda49a8095a 100644 --- a/lib/Target/PowerPC/PPCCodeEmitter.cpp +++ b/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)