aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/SelectionDAG.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-01-28 21:51:40 +0000
committerBill Wendling <isanbard@gmail.com>2010-01-28 21:51:40 +0000
commit4533cac557cdcc13e7c990942758ec8338d9172a (patch)
tree0ed2a694d0e4a38fb0115393602dceb2b950cb26 /include/llvm/CodeGen/SelectionDAG.h
parent1124cc02b475e42a46b31c076d1248a6daf723df (diff)
downloadexternal_llvm-4533cac557cdcc13e7c990942758ec8338d9172a.tar.gz
external_llvm-4533cac557cdcc13e7c990942758ec8338d9172a.tar.bz2
external_llvm-4533cac557cdcc13e7c990942758ec8338d9172a.zip
Assign the ordering of SDNodes in a much less intrusive fashion. After the
"visit*" method is called, take the newly created nodes, walk them in a DFS fashion, and if they don't have an ordering set, then give it one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAG.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index 33ebd00720..60014f833d 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -841,7 +841,7 @@ public:
}
/// AssignOrdering - Assign an order to the SDNode.
- void AssignOrdering(SDNode *SD, unsigned Order);
+ void AssignOrdering(const SDNode *SD, unsigned Order);
/// GetOrdering - Get the order for the SDNode.
unsigned GetOrdering(const SDNode *SD) const;