summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-11 17:19:54 +0000
committerChris Lattner <sabre@nondot.org>2006-08-11 17:19:54 +0000
commit2aa76cf371fc89303c0d0037d93bd70a3b8d8eac (patch)
tree74101bd2a19b1b89593da5834fcc924a17541212
parentd66f14e846dd32947b60a0f52014feb0dbd4b817 (diff)
downloadbcm5719-llvm-2aa76cf371fc89303c0d0037d93bd70a3b8d8eac.tar.gz
bcm5719-llvm-2aa76cf371fc89303c0d0037d93bd70a3b8d8eac.zip
eliminate use of getNode that takes vector<SDOperand>. Wrap a really long line.
llvm-svn: 29610
-rw-r--r--llvm/lib/Target/Alpha/AlphaISelLowering.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp
index b9d42c9d678..d767190ab11 100644
--- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp
@@ -159,7 +159,8 @@ const char *AlphaTargetLowering::getTargetNodeName(unsigned Opcode) const {
}
}
-//http://www.cs.arizona.edu/computer.help/policy/DIGITAL_unix/AA-PY8AC-TET1_html/callCH3.html#BLOCK21
+//http://www.cs.arizona.edu/computer.help/policy/DIGITAL_unix/
+//AA-PY8AC-TET1_html/callCH3.html#BLOCK21
//For now, just use variable size stack frame format
@@ -268,12 +269,13 @@ static SDOperand LowerFORMAL_ARGUMENTS(SDOperand Op, SelectionDAG &DAG,
// Return the new list of results.
std::vector<MVT::ValueType> RetVT(Op.Val->value_begin(),
Op.Val->value_end());
- return DAG.getNode(ISD::MERGE_VALUES, RetVT, ArgValues);
+ return DAG.getNode(ISD::MERGE_VALUES, RetVT, &ArgValues[0], ArgValues.size());
}
static SDOperand LowerRET(SDOperand Op, SelectionDAG &DAG, unsigned int RA) {
SDOperand Copy = DAG.getCopyToReg(Op.getOperand(0), Alpha::R26,
- DAG.getNode(AlphaISD::GlobalRetAddr, MVT::i64),
+ DAG.getNode(AlphaISD::GlobalRetAddr,
+ MVT::i64),
SDOperand());
switch (Op.getNumOperands()) {
default:
@@ -350,7 +352,7 @@ AlphaTargetLowering::LowerCallTo(SDOperand Chain,
Ops.push_back(Chain);
Ops.push_back(Callee);
Ops.insert(Ops.end(), args_to_use.begin(), args_to_use.end());
- SDOperand TheCall = DAG.getNode(AlphaISD::CALL, RetVals, Ops);
+ SDOperand TheCall = DAG.getNode(AlphaISD::CALL, RetVals, &Ops[0], Ops.size());
Chain = TheCall.getValue(RetTyVT != MVT::isVoid);
Chain = DAG.getNode(ISD::CALLSEQ_END, MVT::Other, Chain,
DAG.getConstant(NumBytes, getPointerTy()));
OpenPOWER on IntegriCloud