mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user