diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-07 06:22:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-07 06:22:16 +0000 |
commit | 5fe0e28650dd49f290fce2b80c0052fbc12d2385 (patch) | |
tree | 52b2a0a97eea5e84ff58028d39a8254a64dd8ffa /lib | |
parent | 2199877563ddf4ddb8defb760b33eb4478449a54 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/PowerPC/PPCCodeEmitter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCCodeEmitter.cpp b/lib/Target/PowerPC/PPCCodeEmitter.cpp index 95f84ebe74..bda49a8095 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) |