summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-09 20:40:02 +0000
committerChris Lattner <sabre@nondot.org>2005-08-09 20:40:02 +0000
commit14e060f743f401c5550694e5d301379c3e22ca8b (patch)
tree97b504a29a3d0056facf792a570da428e4b675b2 /llvm/lib/CodeGen
parent080f741f500bb579861068214aabbe098be9114b (diff)
downloadbcm5719-llvm-14e060f743f401c5550694e5d301379c3e22ca8b.tar.gz
bcm5719-llvm-14e060f743f401c5550694e5d301379c3e22ca8b.zip
add cc nodes to the AllNodes list so they show up in Graphviz output
llvm-svn: 22731
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index d321e7720d4..c23c145d641 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud