projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
System: Add SwapByteOrder and update Support/MathExtras.h to use it.
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
GraphTraits.h
diff --git
a/include/llvm/ADT/GraphTraits.h
b/include/llvm/ADT/GraphTraits.h
index 35da5ab2f8ecfe03f038e1ce7cb6964d2e4f3ee1..0fd1f5022af77e9b904675e28c77b8cf7cfd9a44 100644
(file)
--- a/
include/llvm/ADT/GraphTraits.h
+++ b/
include/llvm/ADT/GraphTraits.h
@@
-30,7
+30,7
@@
struct GraphTraits {
// typedef NodeType - Type of Node in the graph
// typedef ChildIteratorType - Type used to iterate over children in graph
// typedef NodeType - Type of Node in the graph
// typedef ChildIteratorType - Type used to iterate over children in graph
- // static NodeType *getEntryNode(
GraphType *
)
+ // static NodeType *getEntryNode(
const GraphType &
)
// Return the entry node of the graph
// static ChildIteratorType child_begin(NodeType *)
// Return the entry node of the graph
// static ChildIteratorType child_begin(NodeType *)
@@
-78,8
+78,8
@@
struct Inverse {
inline Inverse(const GraphType &G) : Graph(G) {}
};
inline Inverse(const GraphType &G) : Graph(G) {}
};
-// Provide a partial specialization of GraphTraits so that the inverse of an
inverse
-// falls back to the original graph.
+// Provide a partial specialization of GraphTraits so that the inverse of an
+//
inverse
falls back to the original graph.
template<class T>
struct GraphTraits<Inverse<Inverse<T> > > {
typedef typename GraphTraits<T>::NodeType NodeType;
template<class T>
struct GraphTraits<Inverse<Inverse<T> > > {
typedef typename GraphTraits<T>::NodeType NodeType;