Fix the PPC JIT failures last night, which were due to mishandling of linkonce globals

llvm-svn: 25141
This commit is contained in:
Chris Lattner 2006-01-07 06:22:16 +00:00
parent 446a1e7a68
commit 00d77e22d4

View File

@ -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)