diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-04 16:33:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-04 16:33:18 +0000 |
commit | 387092e09c44c4a34981bca2fe8998b7d69e6b52 (patch) | |
tree | f4566ac4b8999d50954ade4b2ea1cfbade4a0010 /include/llvm | |
parent | c5d97bda46d03f562394ce1f2470a73d6ac51ca2 (diff) | |
download | external_llvm-387092e09c44c4a34981bca2fe8998b7d69e6b52.zip external_llvm-387092e09c44c4a34981bca2fe8998b7d69e6b52.tar.gz external_llvm-387092e09c44c4a34981bca2fe8998b7d69e6b52.tar.bz2 |
eliminate the add and remove methods, clients must use insert and erase directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/LiveVar/ValueSet.h | 22 | ||||
-rw-r--r-- | include/llvm/CodeGen/ValueSet.h | 22 |
2 files changed, 6 insertions, 38 deletions
diff --git a/include/llvm/Analysis/LiveVar/ValueSet.h b/include/llvm/Analysis/LiveVar/ValueSet.h index d17e022..055eef3 100644 --- a/include/llvm/Analysis/LiveVar/ValueSet.h +++ b/include/llvm/Analysis/LiveVar/ValueSet.h @@ -9,35 +9,19 @@ #define VALUE_SET_H class Value; -#include "Support/HashExtras.h" -#include <ext/hash_set> +#include <set> //------------------- Class Definition for ValueSet -------------------------- -void printValue( const Value *const v); // func to print a Value - - - -class ValueSet : public std::hash_set<const Value *> { - public: - inline void add(const Value *const val) - { assert( val ); insert(val);} // for adding a live variable to set - - inline void remove(const Value *const val) - { assert( val ); erase(val); } // for removing a live var from set +void printValue( const Value *v); // func to print a Value +struct ValueSet : public std::set<const Value*> { bool setUnion( const ValueSet *const set1); // for performing set union void setSubtract( const ValueSet *const set1); // for performing set diff - void setDifference( const ValueSet *const set1, const ValueSet *const set2); void printSet() const; // for printing a live variable set }; - - - - - #endif diff --git a/include/llvm/CodeGen/ValueSet.h b/include/llvm/CodeGen/ValueSet.h index d17e022..055eef3 100644 --- a/include/llvm/CodeGen/ValueSet.h +++ b/include/llvm/CodeGen/ValueSet.h @@ -9,35 +9,19 @@ #define VALUE_SET_H class Value; -#include "Support/HashExtras.h" -#include <ext/hash_set> +#include <set> //------------------- Class Definition for ValueSet -------------------------- -void printValue( const Value *const v); // func to print a Value - - - -class ValueSet : public std::hash_set<const Value *> { - public: - inline void add(const Value *const val) - { assert( val ); insert(val);} // for adding a live variable to set - - inline void remove(const Value *const val) - { assert( val ); erase(val); } // for removing a live var from set +void printValue( const Value *v); // func to print a Value +struct ValueSet : public std::set<const Value*> { bool setUnion( const ValueSet *const set1); // for performing set union void setSubtract( const ValueSet *const set1); // for performing set diff - void setDifference( const ValueSet *const set1, const ValueSet *const set2); void printSet() const; // for printing a live variable set }; - - - - - #endif |