aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/DataFlow.h
diff options
context:
space:
mode:
authorEdwin Török <edwintorok@gmail.com>2009-04-30 17:09:22 +0000
committerEdwin Török <edwintorok@gmail.com>2009-04-30 17:09:22 +0000
commit0d833b7e3166bdbc89cef7d8d5ad37faa50df355 (patch)
tree30a0c2ed809f89138657b3d90565590f0641b946 /include/llvm/Support/DataFlow.h
parent5e4eb76f25b8bea7342af1e1bbd28d010f4e8ec8 (diff)
downloadexternal_llvm-0d833b7e3166bdbc89cef7d8d5ad37faa50df355.zip
external_llvm-0d833b7e3166bdbc89cef7d8d5ad37faa50df355.tar.gz
external_llvm-0d833b7e3166bdbc89cef7d8d5ad37faa50df355.tar.bz2
Make dataflow iteration possible on Value*, not only on User*: df_ext_iterator<Value*, SmallPtrSet<const Value*, 16> >
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DataFlow.h')
-rw-r--r--include/llvm/Support/DataFlow.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/DataFlow.h b/include/llvm/Support/DataFlow.h
index 4b94ba3..8f79ead 100644
--- 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
-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;
}
@@ -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;
- static NodeType *getEntryNode(User *G) {
+ static NodeType *getEntryNode(Value *G) {
return G;
}