diff options
Diffstat (limited to 'libgo/runtime/go-panic.c')
-rw-r--r-- | libgo/runtime/go-panic.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libgo/runtime/go-panic.c b/libgo/runtime/go-panic.c index 23df57930b7..2e4a7883c18 100644 --- a/libgo/runtime/go-panic.c +++ b/libgo/runtime/go-panic.c @@ -105,22 +105,3 @@ __go_panic (struct __go_empty_interface arg) __printpanics (g->panic); runtime_dopanic (0); } - -/* This is used by the runtime library. */ - -void -__go_panic_msg (const char* msg) -{ - size_t len; - unsigned char *sdata; - struct __go_string s; - struct __go_empty_interface arg; - - len = __builtin_strlen (msg); - sdata = runtime_mallocgc (len, FlagNoPointers, 0, 0); - __builtin_memcpy (sdata, msg, len); - s.__data = sdata; - s.__length = len; - newErrorString(s, &arg); - __go_panic (arg); -} |