gcc/libgo/go/reflect/makefunc_dummy.c
Ian Lance Taylor dffa732835 reflect, runtime: Use libffi closures to implement reflect.MakeFunc.
Keep using the existing 386 and amd64 code on those archs,
since it is more efficient.

From-SVN: r212853
2014-07-19 21:36:26 +00:00

16 lines
436 B
C

// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "runtime.h"
/* Dummy function for processors that implement MakeFunc using FFI
rather than having builtin support. */
void makeFuncStub (void) __asm__ ("reflect.makeFuncStub");
void makeFuncStub (void)
{
runtime_throw ("impossible call to makeFuncStub");
}