aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/gofrontend/backend.h')
-rw-r--r--gcc/go/gofrontend/backend.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/backend.h b/gcc/go/gofrontend/backend.h
index 786223f..e49cedf 100644
--- a/gcc/go/gofrontend/backend.h
+++ b/gcc/go/gofrontend/backend.h
@@ -253,9 +253,11 @@ class Backend
// Create an expression that indirects through the pointer expression EXPR
// (i.e., return the expression for *EXPR). KNOWN_VALID is true if the pointer
- // is known to point to a valid memory location.
+ // is known to point to a valid memory location. BTYPE is the expected type
+ // of the indirected EXPR.
virtual Bexpression*
- indirect_expression(Bexpression* expr, bool known_valid, Location) = 0;
+ indirect_expression(Btype* btype, Bexpression* expr, bool known_valid,
+ Location) = 0;
// Return an expression that declares a constant named NAME with the
// constant value VAL in BTYPE.