// 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 Value::use_const_iterator ChildIteratorType;
- static NodeType *getEntryNode(const User *G) {
+ static NodeType *getEntryNode(const Value *G) {
return G;
}
}
};
-template <> struct GraphTraits<User*> {
+template <> struct GraphTraits<Value*> {
typedef Value NodeType;
typedef Value::use_iterator ChildIteratorType;
- static NodeType *getEntryNode(User *G) {
+ static NodeType *getEntryNode(Value *G) {
return G;
}