mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[SDAG] Update the AVR backend for the SelectionDAG API changes in
r339740, fixing the build for this target. llvm-svn: 339748
This commit is contained in:
parent
8d8d0eb497
commit
dd5c02d056
@ -350,9 +350,7 @@ template <> bool AVRDAGToDAGISel::select<ISD::STORE>(SDNode *N) {
|
||||
SDNode *ResNode = CurDAG->getMachineNode(Opc, DL, MVT::Other, Ops);
|
||||
|
||||
// Transfer memory operands.
|
||||
MachineSDNode::mmo_iterator MemOp = MF->allocateMemRefsArray(1);
|
||||
MemOp[0] = ST->getMemOperand();
|
||||
cast<MachineSDNode>(ResNode)->setMemRefs(MemOp, MemOp + 1);
|
||||
CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {ST->getMemOperand()});
|
||||
|
||||
ReplaceUses(SDValue(N, 0), SDValue(ResNode, 0));
|
||||
CurDAG->RemoveDeadNode(N);
|
||||
@ -407,9 +405,7 @@ template <> bool AVRDAGToDAGISel::select<ISD::LOAD>(SDNode *N) {
|
||||
}
|
||||
|
||||
// Transfer memory operands.
|
||||
MachineSDNode::mmo_iterator MemOp = MF->allocateMemRefsArray(1);
|
||||
MemOp[0] = LD->getMemOperand();
|
||||
cast<MachineSDNode>(ResNode)->setMemRefs(MemOp, MemOp + 1);
|
||||
CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {LD->getMemOperand()});
|
||||
|
||||
ReplaceUses(SDValue(N, 0), SDValue(ResNode, 0));
|
||||
ReplaceUses(SDValue(N, 1), SDValue(ResNode, 1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user