Eliminate MainTreeNode function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-09-11 23:22:43 +00:00
parent 974e73a086
commit c2a2396e17
4 changed files with 12 additions and 28 deletions

View File

@ -220,7 +220,7 @@ SelectInstructionsForTree(BasicTreeNode* treeRoot,
//
if (treeRoot->opLabel != VRegListOp)
{
InstructionNode* instrNode = (InstructionNode*) MainTreeNode(treeRoot);
InstructionNode* instrNode = (InstructionNode*)treeRoot->treeNodePtr;
assert(instrNode->getNodeType() == InstrTreeNode::NTInstructionNode);
unsigned N = GetInstructionsByRule(instrNode, ruleForNode, nts, Target,
@ -259,7 +259,7 @@ SelectInstructionsForTree(BasicTreeNode* treeRoot,
{
assert(i < 2);
InstrTreeNode::InstrTreeNodeType
nodeType = MainTreeNode(kids[i])->getNodeType();
nodeType = kids[i]->treeNodePtr->getNodeType();
if (nodeType == InstrTreeNode::NTVRegListNode ||
nodeType == InstrTreeNode::NTInstructionNode)
{