OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [runtime/] [go-typestring.c] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
/* 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 "interface.h"
8
#include "go-type.h"
9
#include "go-string.h"
10
 
11
struct __go_string typestring(struct __go_empty_interface)
12
  asm ("libgo_runtime.runtime.typestring");
13
 
14
struct __go_string
15
typestring (struct __go_empty_interface e)
16
{
17
  return *e.__type_descriptor->__reflection;
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.