@@ -628,13 +628,13 @@ static unsigned convert_struct_offset(jl_codectx_t &ctx, Type *lty, unsigned byt
628628
629629static Type *_julia_struct_to_llvm (jl_codegen_params_t *ctx, LLVMContext &ctxt, jl_value_t *jt, bool *isboxed, bool llvmcall=false );
630630
631- static Type *_julia_type_to_llvm (jl_codegen_params_t *ctx, LLVMContext &ctxt, jl_value_t *jt, bool *isboxed, bool no_boxing )
631+ static Type *_julia_type_to_llvm (jl_codegen_params_t *ctx, LLVMContext &ctxt, jl_value_t *jt, bool *isboxed)
632632{
633633 // this function converts a Julia Type into the equivalent LLVM type
634634 if (isboxed) *isboxed = false ;
635635 if (jt == (jl_value_t *)jl_bottom_type || jt == (jl_value_t *)jl_typeofbottom_type || jt == (jl_value_t *)jl_typeofbottom_type->super )
636636 return getVoidTy (ctxt);
637- if (jl_is_concrete_immutable (jt) || no_boxing ) {
637+ if (jl_is_concrete_immutable (jt)) {
638638 if (jl_datatype_nbits (jt) == 0 )
639639 return getVoidTy (ctxt);
640640 Type *t = _julia_struct_to_llvm (ctx, ctxt, jt, isboxed);
@@ -647,20 +647,13 @@ static Type *_julia_type_to_llvm(jl_codegen_params_t *ctx, LLVMContext &ctxt, jl
647647
648648static Type *julia_type_to_llvm (jl_codectx_t &ctx, jl_value_t *jt, bool *isboxed)
649649{
650- return _julia_type_to_llvm (&ctx.emission_context , ctx.builder .getContext (), jt, isboxed, false );
650+ return _julia_type_to_llvm (&ctx.emission_context , ctx.builder .getContext (), jt, isboxed);
651651}
652652
653653extern " C" JL_DLLEXPORT_CODEGEN
654654Type *jl_type_to_llvm_impl (jl_value_t *jt, LLVMContextRef ctxt, bool *isboxed)
655655{
656- return _julia_type_to_llvm (NULL , *unwrap (ctxt), jt, isboxed, false );
657- }
658-
659-
660- extern " C" JL_DLLEXPORT_CODEGEN
661- Type *jl_struct_to_llvm_impl (jl_value_t *jt, LLVMContextRef ctxt, bool *isboxed)
662- {
663- return _julia_type_to_llvm (NULL , *unwrap (ctxt), jt, isboxed, true );
656+ return _julia_type_to_llvm (NULL , *unwrap (ctxt), jt, isboxed);
664657}
665658
666659
0 commit comments