Revert "bump inkwell to 0.1.0"

This commit is contained in:
Syrus Akbary
2023-02-01 16:40:32 +01:00
committed by GitHub
parent 3b0c6112f2
commit f0374ce478
7 changed files with 64 additions and 83 deletions

View File

@ -106,7 +106,7 @@ impl FuncTranslator {
func.add_attribute(AttributeLoc::Function, intrinsics.stack_probe);
func.set_personality_function(intrinsics.personality);
func.as_global_value().set_section(Some(FUNCTION_SECTION));
func.as_global_value().set_section(FUNCTION_SECTION);
func.set_linkage(Linkage::DLLExport);
func.as_global_value()
.set_dll_storage_class(DLLStorageClass::Export);
@ -2334,7 +2334,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
// element type.
let casted_table_base = self.builder.build_pointer_cast(
table_base,
self.intrinsics.funcref_ty.ptr_type(AddressSpace::default()),
self.intrinsics.funcref_ty.ptr_type(AddressSpace::Generic),
"casted_table_base",
);
@ -2503,7 +2503,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
let typed_func_ptr = self.builder.build_pointer_cast(
func_ptr,
llvm_func_type.ptr_type(AddressSpace::default()),
llvm_func_type.ptr_type(AddressSpace::Generic),
"typed_func_ptr",
);