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 | 1185e73cc9fd69b1bc9fa053149402da019f247e (patch) | |
tree | 5b3f822e255cb13dafbfd68374cc2b5e25c25613 /llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp | |
parent | 2e8b93ac46ba3173b2760736dba785161eb906ba (diff) | |
download | bcm5719-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.cpp | 1 |
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) |