Fix some LLVM asserts by using LLVMConstNamedStruct everywhere

This commit is contained in:
gingerBill
2021-03-19 15:47:10 +00:00
parent bda9eb7348
commit 178e891c78
3 changed files with 108 additions and 67 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ void lb_generate_module(lbGenerator *gen);
String lb_mangle_name(lbModule *m, Entity *e);
String lb_get_entity_name(lbModule *m, Entity *e, String name = {});
LLVMAttributeRef lb_create_enum_attribute(LLVMContextRef ctx, char const *name, u64 value);
LLVMAttributeRef lb_create_enum_attribute(LLVMContextRef ctx, char const *name, u64 value=0);
void lb_add_proc_attribute_at_index(lbProcedure *p, isize index, char const *name, u64 value);
void lb_add_proc_attribute_at_index(lbProcedure *p, isize index, char const *name);
lbProcedure *lb_create_procedure(lbModule *module, Entity *entity);