From: Chris Lattner Date: Mon, 4 Feb 2002 16:33:18 +0000 (+0000) Subject: eliminate the add and remove methods, clients must use insert and erase directly. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=387092e09c44c4a34981bca2fe8998b7d69e6b52;p=oota-llvm.git 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 --- diff --git a/include/llvm/Analysis/LiveVar/ValueSet.h b/include/llvm/Analysis/LiveVar/ValueSet.h index d17e0229a12..055eef332f1 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 +#include //------------------- Class Definition for ValueSet -------------------------- -void printValue( const Value *const v); // func to print a Value - - - -class ValueSet : public std::hash_set { - 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 { 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 d17e0229a12..055eef332f1 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 +#include //------------------- Class Definition for ValueSet -------------------------- -void printValue( const Value *const v); // func to print a Value - - - -class ValueSet : public std::hash_set { - 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 { 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