summaryrefslogtreecommitdiff
path: root/utils/TableGen/SetTheory.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-06-04 05:09:36 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-06-04 05:09:36 +0000
commit1023f5a42d82fca71c191dd6c1001f79e07c63ae (patch)
tree8fce32f050f58d053e23c11fe239cd012f068673 /utils/TableGen/SetTheory.h
parent1de99829b6bebe3310682efac8be2a9a95323220 (diff)
downloadllvm-1023f5a42d82fca71c191dd6c1001f79e07c63ae.tar.gz
llvm-1023f5a42d82fca71c191dd6c1001f79e07c63ae.tar.bz2
llvm-1023f5a42d82fca71c191dd6c1001f79e07c63ae.tar.xz
Silence compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/SetTheory.h')
-rw-r--r--utils/TableGen/SetTheory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/SetTheory.h b/utils/TableGen/SetTheory.h
index c648d46e60..2202f22396 100644
--- a/utils/TableGen/SetTheory.h
+++ b/utils/TableGen/SetTheory.h
@@ -66,6 +66,8 @@ public:
/// Operator - A callback representing a DAG operator.
struct Operator {
+ virtual ~Operator() {}
+
/// apply - Apply this operator to Expr's arguments and insert the result
/// in Elts.
virtual void apply(SetTheory&, DagInit *Expr, RecSet &Elts) =0;
@@ -75,6 +77,8 @@ public:
/// set into a fully expanded list of elements. Expanders provide a way for
/// users to define named sets that can be used in DAG expressions.
struct Expander {
+ virtual ~Expander() {}
+
virtual void expand(SetTheory&, Record*, RecSet &Elts) =0;
};