diff options
Diffstat (limited to 'contrib/llvm/include/llvm/TableGen/SetTheory.h')
-rw-r--r-- | contrib/llvm/include/llvm/TableGen/SetTheory.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/llvm/include/llvm/TableGen/SetTheory.h b/contrib/llvm/include/llvm/TableGen/SetTheory.h index 76e56ec..595c29f 100644 --- a/contrib/llvm/include/llvm/TableGen/SetTheory.h +++ b/contrib/llvm/include/llvm/TableGen/SetTheory.h @@ -95,17 +95,17 @@ private: ExpandMap Expansions; // Known DAG operators by name. - StringMap<Operator*> Operators; + StringMap<std::unique_ptr<Operator>> Operators; // Typed expanders by class name. - StringMap<Expander*> Expanders; + StringMap<std::unique_ptr<Expander>> Expanders; public: /// Create a SetTheory instance with only the standard operators. SetTheory(); /// addExpander - Add an expander for Records with the named super class. - void addExpander(StringRef ClassName, Expander*); + void addExpander(StringRef ClassName, std::unique_ptr<Expander>); /// addFieldExpander - Add an expander for ClassName that simply evaluates /// FieldName in the Record to get the set elements. That is all that is @@ -118,7 +118,7 @@ public: void addFieldExpander(StringRef ClassName, StringRef FieldName); /// addOperator - Add a DAG operator. - void addOperator(StringRef Name, Operator*); + void addOperator(StringRef Name, std::unique_ptr<Operator>); /// evaluate - Evaluate Expr and append the resulting set to Elts. void evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc); |