summaryrefslogtreecommitdiff
path: root/gcc/go/go-backend.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-11 04:48:22 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-11 04:48:22 +0000
commit927a01eba66c97c810b74e48669832863c8b846d (patch)
tree5bbea3053021715319cc56c179b13eb1af9ea5af /gcc/go/go-backend.c
parentfdc214958edc1060dcbc0c7e5567a6b1d0ce84e8 (diff)
downloadgcc-927a01eba66c97c810b74e48669832863c8b846d.tar.gz
compiler: Use backend interface for type sizes and alignments.
* go-gcc.cc (Gcc_backend::type_size): New function. (Gcc_backend::type_alignment): New function. (Gcc_backend::type_field_alignment): New function. (Gcc_backend::type_field_offset): New function. * go-backend.c (go_type_alignment): Remove. * go-c.h (go_type_alignment): Don't declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183089 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/go-backend.c')
-rw-r--r--gcc/go/go-backend.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/go/go-backend.c b/gcc/go/go-backend.c
index 4d1ea827c5e..5dab2f1864c 100644
--- a/gcc/go/go-backend.c
+++ b/gcc/go/go-backend.c
@@ -1,5 +1,5 @@
/* go-backend.c -- Go frontend interface to gcc backend.
- Copyright (C) 2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 2010, 2011, 2012 Free Software Foundation, Inc.
This file is part of GCC.
@@ -48,14 +48,6 @@ along with GCC; see the file COPYING3. If not see
/* This file holds all the cases where the Go frontend needs
information from gcc's backend. */
-/* Return the alignment in bytes of a value of type T. */
-
-unsigned int
-go_type_alignment (tree t)
-{
- return TYPE_ALIGN_UNIT (t);
-}
-
/* Return the alignment in bytes of a struct field of type T. */
unsigned int