diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-07 01:16:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-07 01:16:20 +0000 |
commit | 0effc3f961337abd0edb7c1a3dcd4b98636c085c (patch) | |
tree | 28d4e50a31f7428050763b36e3c7bbdeeb541a0f /libgo/runtime/runtime.c | |
parent | 1f3d0afc2623f1728a73971d415ca2991f7b9c18 (diff) | |
download | gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.zip gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.tar.gz gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.tar.bz2 |
libgo: Implement and use runtime.Caller, runtime.Func.FileLine.
From-SVN: r185025
Diffstat (limited to 'libgo/runtime/runtime.c')
-rw-r--r-- | libgo/runtime/runtime.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libgo/runtime/runtime.c b/libgo/runtime/runtime.c index 78c865b..d1ce26d 100644 --- a/libgo/runtime/runtime.c +++ b/libgo/runtime/runtime.c @@ -211,22 +211,3 @@ runtime_cputicks(void) return 0; #endif } - -struct funcline_go_return -{ - String retfile; - int32 retline; -}; - -struct funcline_go_return -runtime_funcline_go(void *f, uintptr targetpc) - __asm__("libgo_runtime.runtime.funcline_go"); - -struct funcline_go_return -runtime_funcline_go(void *f __attribute__((unused)), - uintptr targetpc __attribute__((unused))) -{ - struct funcline_go_return ret; - runtime_memclr(&ret, sizeof ret); - return ret; -} |