aboutsummaryrefslogtreecommitdiff
path: root/gcc/sym-exec/condition.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/sym-exec/condition.cc')
-rw-r--r--gcc/sym-exec/condition.cc37
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc/sym-exec/condition.cc b/gcc/sym-exec/condition.cc
new file mode 100644
index 0000000..dc42cf9
--- /dev/null
+++ b/gcc/sym-exec/condition.cc
@@ -0,0 +1,37 @@
+#include "condition.h"
+
+
+bit_condition::bit_condition (value* left, value* right, condition_type type)
+{
+ this->left = left;
+ this->right = right;
+ this->type = type;
+}
+
+
+bit_condition::bit_condition (const bit_condition &expr)
+{
+ bit_expression::copy (&expr);
+ type = expr.get_cond_type ();
+}
+
+
+condition_type
+bit_condition::get_cond_type () const
+{
+ return type;
+}
+
+
+value *
+bit_condition::copy () const
+{
+ return new bit_condition (*this);
+}
+
+
+value_type
+bit_condition::get_type () const
+{
+ return value_type::BIT_CONDITION;
+} \ No newline at end of file