From 2ba79e2f17fba53963f3ad7f785715e4d0379149 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 21 Aug 2026 15:34:27 +0100 Subject: [PATCH] Remove dead code --- src/llvm_backend_asm.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/llvm_backend_asm.cpp b/src/llvm_backend_asm.cpp index 0e7fdc919..eae2b6fc5 100644 --- a/src/llvm_backend_asm.cpp +++ b/src/llvm_backend_asm.cpp @@ -8,11 +8,6 @@ struct lbAsmGenerate { gbString asm_string; gbString constraints; - struct ElemAttr { - unsigned arg_pos; - LLVMTypeRef elem; - }; - enum WriteOperandFlags : u32 { WriteOperandFlag_PrintPrefixes = 1<<0, WriteOperandFlag_IsScale = 1<<1, @@ -124,9 +119,6 @@ struct lbAsmGenerate { ret_slot [i] = -1; } - // elementtype() attrs to attach after the call is built (indirect/memory operands). - auto elem_attrs = array_make(temporary_allocator(), 0, ops->count); - i32 next_op = 0; // running $N counter (outputs first, then inputs) // Pass 1: outputs @@ -394,13 +386,6 @@ struct lbAsmGenerate { LLVMDisposeMessage(ir); } - // Attach elementtype() to every indirect operand's pointer arg (opaque-pointer requirement). - unsigned et_kind = LLVMGetEnumAttributeKindForName("elementtype", 11); - for (auto const &elem_attr : elem_attrs) { - LLVMAttributeRef attr = LLVMCreateTypeAttribute(ctx, et_kind, elem_attr.elem); - LLVMAddCallSiteAttribute(call, cast(LLVMAttributeIndex)(elem_attr.arg_pos + 1), attr); - } - // Repackage results in Odin result order Type *pt = base_type(tmpl_entity->type); isize result_count = 0;