diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-09 20:40:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-09 20:40:02 +0000 |
commit | 079a27a0deca2501485da55701632cf9ebe4e8c4 (patch) | |
tree | a88b0059c806b84c1cd97ff14e30cc2b8b28ccdf /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 645f381d385d9c3ce94b9410ed57739476736cf7 (diff) |
add cc nodes to the AllNodes list so they show up in Graphviz output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index d321e7720d..c23c145d64 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -379,8 +379,10 @@ SDOperand SelectionDAG::getCondCode(ISD::CondCode Cond) { if ((unsigned)Cond >= CondCodeNodes.size()) CondCodeNodes.resize(Cond+1); - if (CondCodeNodes[Cond] == 0) + if (CondCodeNodes[Cond] == 0) { CondCodeNodes[Cond] = new CondCodeSDNode(Cond); + AllNodes.push_back(CondCodeNodes[Cond]); + } return SDOperand(CondCodeNodes[Cond], 0); } |