+2019-08-10 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ PR d/90893
+ * runtime.cc (enum libcall_type): Rename to...
+ (enum d_libcall_type): ...this.
+ (get_libcall_type): Use d_libcall_type.
+ (build_libcall_decl): Likewise.
+
2019-06-16 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/90559
We represent them in the frontend here, however there's no guarantee that
the compiler implementation actually matches the actual implementation. */
-enum libcall_type
+enum d_libcall_type
{
LCT_VOID, /* void */
LCT_BYTE, /* byte */
arrayOf() will return cached types if they have been requested before. */
static Type *
-get_libcall_type (libcall_type type)
+get_libcall_type (d_libcall_type type)
{
if (libcall_types[type])
return libcall_types[type];
the number of arguments, the types of which are provided in `...'. */
static tree
-build_libcall_decl (const char *name, libcall_type return_type,
+build_libcall_decl (const char *name, d_libcall_type return_type,
int flags, int nparams, ...)
{
tree *args = XALLOCAVEC (tree, nparams);
for (int i = 0; i < nparams; i++)
{
- libcall_type ptype = (libcall_type) va_arg (ap, int);
+ d_libcall_type ptype = (d_libcall_type) va_arg (ap, int);
Type *type = get_libcall_type (ptype);
if (type == Type::tvoid)