forked from OSchip/llvm-project
parent
150460321e
commit
985b6e3d13
|
@ -125,19 +125,6 @@ InstructionNode::InstructionNode(Instruction* _instr)
|
|||
basicNode.opLabel = opLabel;
|
||||
}
|
||||
|
||||
void
|
||||
InstructionNode::reverseBinaryArgumentOrder()
|
||||
{
|
||||
assert(getInstruction()->isBinaryOp());
|
||||
|
||||
// switch arguments for the instruction
|
||||
((BinaryOperator*) getInstruction())->swapOperands();
|
||||
|
||||
// switch arguments for this tree node itself
|
||||
BasicTreeNode* leftCopy = basicNode.leftChild;
|
||||
basicNode.leftChild = basicNode.rightChild;
|
||||
basicNode.rightChild = leftCopy;
|
||||
}
|
||||
|
||||
void
|
||||
InstructionNode::dumpNode(int indent) const
|
||||
|
|
Loading…
Reference in New Issue