re PR go/46986 (Go is not supported on Darwin)
[platform/upstream/gcc.git] / libgo / runtime / go-typestring.c
1 /* go-typestring.c -- the runtime.typestring function.
2
3    Copyright 2010 The Go Authors. All rights reserved.
4    Use of this source code is governed by a BSD-style
5    license that can be found in the LICENSE file.  */
6
7 #include "runtime.h"
8 #include "interface.h"
9 #include "go-type.h"
10
11 String typestring(struct __go_empty_interface) __asm__ (GOSYM_PREFIX "runtime.typestring");
12
13 String
14 typestring (struct __go_empty_interface e)
15 {
16   return *e.__type_descriptor->__reflection;
17 }