diff options
author | Ian Lance Taylor <iant@google.com> | 2012-01-11 04:48:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-01-11 04:48:22 +0000 |
commit | ef1ed13d9ab2e2c9dacdb5ae06afb86ca6ad7193 (patch) | |
tree | 5bbea3053021715319cc56c179b13eb1af9ea5af /gcc/go/go-backend.c | |
parent | 5313d330b2a6596686c2b5e04431c167ef4544be (diff) | |
download | gcc-ef1ed13d9ab2e2c9dacdb5ae06afb86ca6ad7193.zip gcc-ef1ed13d9ab2e2c9dacdb5ae06afb86ca6ad7193.tar.gz gcc-ef1ed13d9ab2e2c9dacdb5ae06afb86ca6ad7193.tar.bz2 |
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.
From-SVN: r183089
Diffstat (limited to 'gcc/go/go-backend.c')
-rw-r--r-- | gcc/go/go-backend.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/go/go-backend.c b/gcc/go/go-backend.c index 4d1ea82..5dab2f1 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 |