summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/include/llvm/TableGen/SetTheory.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/include/llvm/TableGen/SetTheory.h')
-rw-r--r--contrib/llvm/include/llvm/TableGen/SetTheory.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/contrib/llvm/include/llvm/TableGen/SetTheory.h b/contrib/llvm/include/llvm/TableGen/SetTheory.h
index d4e0f53..818b054 100644
--- a/contrib/llvm/include/llvm/TableGen/SetTheory.h
+++ b/contrib/llvm/include/llvm/TableGen/SetTheory.h
@@ -50,8 +50,10 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/StringMap.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/Support/SMLoc.h"
#include <map>
+#include <memory>
#include <vector>
namespace llvm {
@@ -68,13 +70,14 @@ public:
/// Operator - A callback representing a DAG operator.
class Operator {
virtual void anchor();
+
public:
- virtual ~Operator() {}
+ virtual ~Operator() = default;
/// apply - Apply this operator to Expr's arguments and insert the result
/// in Elts.
virtual void apply(SetTheory&, DagInit *Expr, RecSet &Elts,
- ArrayRef<SMLoc> Loc) =0;
+ ArrayRef<SMLoc> Loc) = 0;
};
/// Expander - A callback function that can transform a Record representing a
@@ -82,10 +85,11 @@ public:
/// users to define named sets that can be used in DAG expressions.
class Expander {
virtual void anchor();
+
public:
- virtual ~Expander() {}
+ virtual ~Expander() = default;
- virtual void expand(SetTheory&, Record*, RecSet &Elts) =0;
+ virtual void expand(SetTheory&, Record*, RecSet &Elts) = 0;
};
private:
@@ -138,5 +142,4 @@ public:
} // end namespace llvm
-#endif
-
+#endif // LLVM_TABLEGEN_SETTHEORY_H
OpenPOWER on IntegriCloud