summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSelection
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-11 23:22:43 +0000
committerChris Lattner <sabre@nondot.org>2001-09-11 23:22:43 +0000
commit706ee8e5ec05e25b650888faac6e766f1e198b7b (patch)
tree75ee399bf57e056b6f41ceb242132a4c1219446f /llvm/lib/CodeGen/InstrSelection
parenta7d3b8dca149d2097627e3ba2e13bb76826f1bd1 (diff)
downloadbcm5719-llvm-706ee8e5ec05e25b650888faac6e766f1e198b7b.tar.gz
bcm5719-llvm-706ee8e5ec05e25b650888faac6e766f1e198b7b.zip
Eliminate MainTreeNode function
llvm-svn: 550
Diffstat (limited to 'llvm/lib/CodeGen/InstrSelection')
-rw-r--r--llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp4
1 files changed, 2 insertions, 2 deletions
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)
{
OpenPOWER on IntegriCloud