aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/expressions.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r--gcc/go/gofrontend/expressions.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h
index 575df0f..99a0d07 100644
--- a/gcc/go/gofrontend/expressions.h
+++ b/gcc/go/gofrontend/expressions.h
@@ -106,7 +106,8 @@ class Expression
EXPRESSION_INTERFACE_INFO,
EXPRESSION_STRUCT_FIELD_OFFSET,
EXPRESSION_MAP_DESCRIPTOR,
- EXPRESSION_LABEL_ADDR
+ EXPRESSION_LABEL_ADDR,
+ EXPRESSION_CONDITIONAL
};
Expression(Expression_classification, Location);
@@ -388,6 +389,10 @@ class Expression
static Expression*
make_label_addr(Label*, Location);
+ // Make a conditional expression.
+ static Expression*
+ make_conditional(Expression*, Expression*, Expression*, Location);
+
// Return the expression classification.
Expression_classification
classification() const