From bb46f52027416598a662dc1c58f48d9d56b1a65b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 15 Jan 2009 20:18:42 +0000 Subject: Add the private linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62279 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Target/Mips/MipsISelLowering.cpp') diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index bca5ab2..f2786dc 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -216,7 +216,7 @@ bool MipsTargetLowering::IsGlobalInSmallSection(GlobalValue *GV) // if this is a internal constant string, there is a special // section for it, but not in small data/bss. - if (GVA->hasInitializer() && GV->hasInternalLinkage()) { + if (GVA->hasInitializer() && GV->hasLocalLinkage()) { Constant *C = GVA->getInitializer(); const ConstantArray *CVA = dyn_cast(C); if (CVA && CVA->isCString()) @@ -489,7 +489,7 @@ LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) SDValue ResNode = DAG.getLoad(MVT::i32, DAG.getEntryNode(), GA, NULL, 0); // On functions and global targets not internal linked only // a load from got/GP is necessary for PIC to work. - if (!GV->hasInternalLinkage() || isa(GV)) + if (!GV->hasLocalLinkage() || isa(GV)) return ResNode; SDValue Lo = DAG.getNode(MipsISD::Lo, MVT::i32, GA); return DAG.getNode(ISD::ADD, MVT::i32, ResNode, Lo); -- cgit v1.1