diff options
| author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2007-12-21 12:22:29 +0000 |
|---|---|---|
| committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2007-12-21 12:22:29 +0000 |
| commit | 31a2c3948e0d5f206ce5a4da4cb372eb4325dac3 (patch) | |
| tree | 8da3d5793fbf20551fa0c36bc71b144112bd334e /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | 80c741e16030558570c7d19233b68f367d22d0af (diff) | |
| download | bcm5719-llvm-31a2c3948e0d5f206ce5a4da4cb372eb4325dac3.tar.gz bcm5719-llvm-31a2c3948e0d5f206ce5a4da4cb372eb4325dac3.zip | |
Fix unintented change from last commit
llvm-svn: 45282
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 411899c45e0..6f0a7b15128 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -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. |

