projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow using MemoryBuffers with yaml::Stream directly.
[oota-llvm.git]
/
include
/
llvm
/
Support
/
DataFlow.h
diff --git
a/include/llvm/Support/DataFlow.h
b/include/llvm/Support/DataFlow.h
index 4b94ba36a3fcc8f6d72de06377b060bb2a1e5dcf..355c402f542d3533d1287904269dd0f602bc5839 100644
(file)
--- a/
include/llvm/Support/DataFlow.h
+++ b/
include/llvm/Support/DataFlow.h
@@
-23,11
+23,11
@@
namespace llvm {
// Provide specializations of GraphTraits to be able to treat def-use/use-def
// chains as graphs
// Provide specializations of GraphTraits to be able to treat def-use/use-def
// chains as graphs
-template <> struct GraphTraits<const
User
*> {
+template <> struct GraphTraits<const
Value
*> {
typedef const Value NodeType;
typedef const Value NodeType;
- typedef Value::
use_const
_iterator ChildIteratorType;
+ typedef Value::
const_use
_iterator ChildIteratorType;
- static NodeType *getEntryNode(const
User
*G) {
+ static NodeType *getEntryNode(const
Value
*G) {
return G;
}
return G;
}
@@
-40,11
+40,11
@@
template <> struct GraphTraits<const User*> {
}
};
}
};
-template <> struct GraphTraits<
User
*> {
+template <> struct GraphTraits<
Value
*> {
typedef Value NodeType;
typedef Value::use_iterator ChildIteratorType;
typedef Value NodeType;
typedef Value::use_iterator ChildIteratorType;
- static NodeType *getEntryNode(
User
*G) {
+ static NodeType *getEntryNode(
Value
*G) {
return G;
}
return G;
}