mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Eliminate unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4f23166133
commit
9b0b1ec1ec
@ -125,19 +125,6 @@ InstructionNode::InstructionNode(Instruction* _instr)
|
|||||||
basicNode.opLabel = opLabel;
|
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
|
void
|
||||||
InstructionNode::dumpNode(int indent) const
|
InstructionNode::dumpNode(int indent) const
|
||||||
|
@ -125,19 +125,6 @@ InstructionNode::InstructionNode(Instruction* _instr)
|
|||||||
basicNode.opLabel = opLabel;
|
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
|
void
|
||||||
InstructionNode::dumpNode(int indent) const
|
InstructionNode::dumpNode(int indent) const
|
||||||
|
Loading…
Reference in New Issue
Block a user