diff options
author | Andrew Macleod <amacleod@redhat.com> | 2016-03-08 20:05:48 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@redhat.com> | 2016-03-08 20:05:48 +0000 |
commit | a9c23990a22b728d3ce6f81a220a31a39c00a250 (patch) | |
tree | 698018a57aa3ddafec10f2f2cf41ebdc5c0a41de /gcc/go/go-lang.c | |
parent | 18c802bceaebc87788116c7d8ffbafdc863deb1c (diff) |
COnvert all langhooksttype-mac
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ttype-mac@234065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/go-lang.c')
-rw-r--r-- | gcc/go/go-lang.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index 6c8a249ea97..fe67c3f9875 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -300,10 +300,10 @@ go_langhook_parse_file (void) go_write_globals (); } -static tree +static ttype * go_langhook_type_for_size (unsigned int bits, int unsignedp) { - tree type; + ttype *type; if (unsignedp) { if (bits == INT_TYPE_SIZE) @@ -337,22 +337,22 @@ go_langhook_type_for_size (unsigned int bits, int unsignedp) return type; } -static tree +static ttype * go_langhook_type_for_mode (machine_mode mode, int unsignedp) { - tree type; + ttype *type; /* Go has no vector types. Build them here. FIXME: It does not make sense for the middle-end to ask the frontend for a type which the frontend does not support. However, at least for now it is required. See PR 46805. */ if (VECTOR_MODE_P (mode)) { - tree inner; + ttype *inner; inner = go_langhook_type_for_mode (GET_MODE_INNER (mode), unsignedp); - if (inner != NULL_TREE) + if (inner != NULL) return build_vector_type_for_mode (inner, mode); - return NULL_TREE; + return NULL; } // FIXME: This static_cast should be in machmode.h. @@ -401,7 +401,7 @@ go_langhook_type_for_mode (machine_mode mode, int unsignedp) return type; } #endif - return NULL_TREE; + return NULL; } /* Record a builtin function. We just ignore builtin functions. */ |