return addresses, those I already have
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 8 Feb 2007 17:37:41 +0000 (17:37 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 8 Feb 2007 17:37:41 +0000 (17:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34056 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelLowering.cpp

index 0d1cacf83c401cc6957d59155760be268a3bfcef..1674d4443501b70e13ccb102acc2bee1f4b1b90d 100644 (file)
@@ -544,8 +544,9 @@ SDOperand AlphaTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
     return DAG.getTruncStore(S1, DAG.getConstant(VarArgsOffset, MVT::i64),
                              SA2, NULL, 0, MVT::i32);
   }
-  // Frame & Return address.  Currently unimplemented
-  case ISD::RETURNADDR:         break;
+  case ISD::RETURNADDR:        
+    return DAG.getNode(AlphaISD::GlobalRetAddr, MVT::i64);
+      //FIXME: implement
   case ISD::FRAMEADDR:          break;
   }