projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c80103
)
This may be overconservative, but it lets the new cfe compile
author
Andrew Lenharth
<andrewl@lenharth.org>
Thu, 6 Apr 2006 23:18:45 +0000
(23:18 +0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/lib/Target/Alpha/AlphaISelLowering.cpp
b/lib/Target/Alpha/AlphaISelLowering.cpp
index 8f56b76c791555c01261cb89c6742fc8b6937ae1..fee6457d7d84b6e590a9c3737707b47b32a08852 100644
(file)
--- a/
lib/Target/Alpha/AlphaISelLowering.cpp
+++ b/
lib/Target/Alpha/AlphaISelLowering.cpp
@@
-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);