aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 80efd32580d..017e024e248 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -605,6 +605,16 @@ lhd_builtin_function (tree decl)
return decl;
}
+/* Create a builtin type. */
+
+tree
+add_builtin_type (const char *name, tree type)
+{
+ tree id = get_identifier (name);
+ tree decl = build_decl (BUILTINS_LOCATION, TYPE_DECL, id, type);
+ return lang_hooks.decls.pushdecl (decl);
+}
+
/* LTO hooks. */
/* Used to save and restore any previously active section. */