This may be overconservative, but it lets the new cfe compile
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 6 Apr 2006 23:18:45 +0000 (23:18 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 6 Apr 2006 23:18:45 +0000 (23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27471 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelLowering.cpp

index 8f56b76c791555c01261cb89c6742fc8b6937ae1..fee6457d7d84b6e590a9c3737707b47b32a08852 100644 (file)
@@ -571,7 +571,8 @@ SDOperand AlphaTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
     GlobalValue *GV = GSDN->getGlobal();
     SDOperand GA = DAG.getTargetGlobalAddress(GV, MVT::i64, GSDN->getOffset());
 
-    if (!GV->hasWeakLinkage() && !GV->isExternal() && !GV->hasLinkOnceLinkage()) {
+    //    if (!GV->hasWeakLinkage() && !GV->isExternal() && !GV->hasLinkOnceLinkage()) {
+    if (GV->hasInternalLinkage()) {
       SDOperand Hi = DAG.getNode(AlphaISD::GPRelHi,  MVT::i64, GA,
                                 DAG.getNode(AlphaISD::GlobalBaseReg, MVT::i64));
       SDOperand Lo = DAG.getNode(AlphaISD::GPRelLo, MVT::i64, GA, Hi);