diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-01 19:20:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-01 19:20:00 +0000 |
commit | 5b69fe767ca0786ecb50e703f2da8ea09de5da7c (patch) | |
tree | c31f1859c4d65d980ce12621f697ee7da59a3631 /include/llvm/CodeGen/SelectionDAGNodes.h | |
parent | 0baf2a302fe6e130756bf8b3da831547f0b87190 (diff) |
Add edge source labels to SelectionDAG graphs, now that the graph printing
framework omits differentiated edge sources in the case where the labels
are empty strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 950fd322da..79dbd73e97 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -2397,6 +2397,11 @@ public: SDNodeIterator operator++(int) { // Postincrement SDNodeIterator tmp = *this; ++*this; return tmp; } + size_t operator-(SDNodeIterator Other) const { + assert(Node == Other.Node && + "Cannot compare iterators of two different nodes!"); + return Operand - Other.Operand; + } static SDNodeIterator begin(SDNode *N) { return SDNodeIterator(N, 0); } static SDNodeIterator end (SDNode *N) { |