Fix the PPC JIT failures last night, which were due to mishandling of linkonce globals
authorChris Lattner <sabre@nondot.org>
Sat, 7 Jan 2006 06:22:16 +0000 (06:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Jan 2006 06:22:16 +0000 (06:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25141 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCCodeEmitter.cpp

index 95f84ebe74284f9c5aaa1c90d432e08f19aa784a..bda49a8095a05a75b061a36be346365c72929855 100644 (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)