Merge trunk version 196771 into gupc branch.
[official-gcc.git] / libgo / runtime / go-typestring.c
blob0a90e84bc1ee72b8bb93cc13eb8ec452a7d920ec
1 /* go-typestring.c -- the runtime.typestring function.
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. */
7 #include "runtime.h"
8 #include "interface.h"
9 #include "go-type.h"
11 String typestring(struct __go_empty_interface) __asm__ (GOSYM_PREFIX "runtime.typestring");
13 String
14 typestring (struct __go_empty_interface e)
16 return *e.__type_descriptor->__reflection;