diff options
| author | gingerBill <bill@gingerbill.org> | 2021-06-12 16:47:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-06-12 16:47:20 +0100 |
| commit | 9a311ab9e7930da8e751f15698d88898f265de88 (patch) | |
| tree | 65fe680b678cc6b58d2c69e1feaa8bb111712c3f /src/llvm_backend.cpp | |
| parent | 7d92eaaeb23f36af0bf52f15c6635713e17c4c07 (diff) | |
Remove dead code
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 75f2165d2..dd03ecc2b 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -12912,28 +12912,6 @@ lbAddr lb_build_addr(lbProcedure *p, Ast *expr) { Type *type = base_type(tav.type); if (tav.mode == Addressing_Type) { // Addressing_Type - Selection sel = lookup_field(type, selector, true); - Entity *e = sel.entity; - GB_ASSERT_MSG(e->kind == Entity_Variable, "Entity_%.*s", LIT(entity_strings[e->kind])); - GB_ASSERT(e->flags & EntityFlag_TypeField); - String name = e->token.string; - /*if (name == "names") { - lbValue ti_ptr = lb_type_info(m, type); - lbValue variant = lb_emit_struct_ep(p, ti_ptr, 2); - - lbValue names_ptr = nullptr; - - if (is_type_enum(type)) { - lbValue enum_info = lb_emit_conv(p, variant, t_type_info_enum_ptr); - names_ptr = lb_emit_struct_ep(p, enum_info, 1); - } else if (type->kind == Type_Struct) { - lbValue struct_info = lb_emit_conv(p, variant, t_type_info_struct_ptr); - names_ptr = lb_emit_struct_ep(p, struct_info, 1); - } - return ir_addr(names_ptr); - } else */{ - GB_PANIC("Unhandled TypeField %.*s", LIT(name)); - } GB_PANIC("Unreachable"); } |