Fix unintented change from last commit

llvm-svn: 45282
This commit is contained in:
Nicolas Geoffray 2007-12-21 12:22:29 +00:00
parent 18ab237446
commit 1996d8b1f4

View File

@ -1769,9 +1769,9 @@ static SDOperand LowerCALL(SDOperand Op, SelectionDAG &DAG,
// If the callee is a GlobalAddress/ExternalSymbol node (quite common, every
// direct call is) turn it into a TargetGlobalAddress/TargetExternalSymbol
// node so that legalize doesn't hack it.
//if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
// Callee = DAG.getTargetGlobalAddress(G->getGlobal(), Callee.getValueType());
if (ExternalSymbolSDNode *S = dyn_cast<ExternalSymbolSDNode>(Callee))
if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
Callee = DAG.getTargetGlobalAddress(G->getGlobal(), Callee.getValueType());
else if (ExternalSymbolSDNode *S = dyn_cast<ExternalSymbolSDNode>(Callee))
Callee = DAG.getTargetExternalSymbol(S->getSymbol(), Callee.getValueType());
else if (SDNode *Dest = isBLACompatibleAddress(Callee, DAG))
// If this is an absolute destination address, use the munged value.