mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user