]> git.eshelyaron.com Git - emacs.git/commitdiff
* Add 'gcc_jit_type_get_const' to Windows dynamic load machinery (bug#45303).
authorAndrea Corallo <akrl@sdf.org>
Sat, 19 Dec 2020 19:45:56 +0000 (20:45 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sat, 19 Dec 2020 19:47:59 +0000 (20:47 +0100)
* src/comp.c: Add 'gcc_jit_type_get_const' to windows dynamic
load machinery.

src/comp.c

index b52e7e34aeaefede9e007992818d050aa4cc99a0..f77faaa483eae9b52de8ec5b8eb438c551bf0408 100644 (file)
@@ -102,6 +102,7 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #undef gcc_jit_rvalue_get_type
 #undef gcc_jit_struct_as_type
 #undef gcc_jit_struct_set_fields
+#undef gcc_jit_type_get_const
 #undef gcc_jit_type_get_pointer
 #undef gcc_jit_version_major
 #undef gcc_jit_version_minor
@@ -208,6 +209,7 @@ DEF_DLL_FN (gcc_jit_type *, gcc_jit_context_new_union_type,
 DEF_DLL_FN (gcc_jit_type *, gcc_jit_rvalue_get_type, (gcc_jit_rvalue *rvalue));
 DEF_DLL_FN (gcc_jit_type *, gcc_jit_struct_as_type,
             (gcc_jit_struct *struct_type));
+DEF_DLL_FN (gcc_jit_type *, gcc_jit_type_get_const, (gcc_jit_type *type));
 DEF_DLL_FN (gcc_jit_type *, gcc_jit_type_get_pointer, (gcc_jit_type *type));
 DEF_DLL_FN (void, gcc_jit_block_add_assignment,
             (gcc_jit_block *block, gcc_jit_location *loc, gcc_jit_lvalue *lvalue,
@@ -308,6 +310,7 @@ init_gccjit_functions (void)
   LOAD_DLL_FN (library, gcc_jit_rvalue_get_type);
   LOAD_DLL_FN (library, gcc_jit_struct_as_type);
   LOAD_DLL_FN (library, gcc_jit_struct_set_fields);
+  LOAD_DLL_FN (library, gcc_jit_type_get_const);
   LOAD_DLL_FN (library, gcc_jit_type_get_pointer);
   LOAD_DLL_FN_OPT (library, gcc_jit_context_add_driver_option);
   LOAD_DLL_FN_OPT (library, gcc_jit_global_set_initializer);