Pārlūkot izejas kodu

Add support for `[dynamic]T` in `.raddbg`

gingerBill 1 mēnesi atpakaļ
vecāks
revīzija
1470c300c7
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/llvm_backend.cpp

+ 3 - 2
src/llvm_backend.cpp

@@ -3374,8 +3374,9 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
 			LLVMModuleRef mod = m->mod;
 			LLVMContextRef ctx = m->ctx;
 
-			lb_add_raddbg_string(m, "type_view: {type: \"[]?\", expr: \"array(data, len)\"}");
-			lb_add_raddbg_string(m, "type_view: {type: \"string\", expr: \"array(data, len)\"}");
+			lb_add_raddbg_string(m, "type_view: {type: \"[]?\",        expr: \"array(data, len)\"}");
+			lb_add_raddbg_string(m, "type_view: {type: \"string\",     expr: \"array(data, len)\"}");
+			lb_add_raddbg_string(m, "type_view: {type: \"[dynamic]?\", expr: \"rows($, array(data, len), len, cap, allocator)\"}");
 
 			// column major matrices
 			lb_add_raddbg_string(m, "type_view: {type: \"matrix[1, ?]?\",  expr: \"columns($.data, $[0])\"}");