From 706ee8e5ec05e25b650888faac6e766f1e198b7b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 11 Sep 2001 23:22:43 +0000 Subject: Eliminate MainTreeNode function llvm-svn: 550 --- llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/InstrSelection') diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp index dbb0f8672a6..e6884ab572a 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -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) { -- cgit v1.2.3