Eliminate unused function.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 28 Jul 2001 04:15:45 +0000 (04:15 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 28 Jul 2001 04:15:45 +0000 (04:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/InstrSelection/InstrForest.cpp
lib/Target/SparcV9/InstrSelection/InstrForest.cpp

index ed271a310085aee1a59c2b3e965381da3cdbfd37..ddac9fec92a01455492e29d526b8c1696043296a 100644 (file)
@@ -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
index ed271a310085aee1a59c2b3e965381da3cdbfd37..ddac9fec92a01455492e29d526b8c1696043296a 100644 (file)
@@ -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