aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/backend.h
diff options
context:
space:
mode:
authorChris Manghane <cmang@google.com>2013-12-16 19:58:50 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-12-16 19:58:50 +0000
commit71eba7a0c684782ccf5d4befa394639f607a2717 (patch)
treed9380cfc26a9af9a9f0f214d08c54d1da389bb26 /gcc/go/gofrontend/backend.h
parent74f769b5e02d3d1bfed29c4b74f3c4be17ce30d1 (diff)
downloadgcc-71eba7a0c684782ccf5d4befa394639f607a2717.zip
gcc-71eba7a0c684782ccf5d4befa394639f607a2717.tar.gz
gcc-71eba7a0c684782ccf5d4befa394639f607a2717.tar.bz2
compiler: Use backend interface for struct field expressions.
* go-gcc.cc (Gcc_backend::struct_field_expression): New function. From-SVN: r206029
Diffstat (limited to 'gcc/go/gofrontend/backend.h')
-rw-r--r--gcc/go/gofrontend/backend.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/backend.h b/gcc/go/gofrontend/backend.h
index 8344da4..5580594 100644
--- a/gcc/go/gofrontend/backend.h
+++ b/gcc/go/gofrontend/backend.h
@@ -280,6 +280,10 @@ class Backend
virtual Bexpression*
address_expression(Bexpression*, Location) = 0;
+ // Return an expression for the field at INDEX in BSTRUCT.
+ virtual Bexpression*
+ struct_field_expression(Bexpression* bstruct, size_t index, Location) = 0;
+
// Statements.
// Create an error statement. This is used for cases which should