]> git.eshelyaron.com Git - emacs.git/commitdiff
name basic blocks
authorAndrea Corallo <andrea_corallo@yahoo.it>
Thu, 20 Jun 2019 20:11:38 +0000 (22:11 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:43 +0000 (11:33 +0100)
src/comp.c

index 0bc8be47a4d07e102d050b3232f13a48fce8232a..d08ec8c7c9c28a566cbef0b1c616a30b290d2020 100644 (file)
@@ -1073,12 +1073,14 @@ compute_bblocks (ptrdiff_t bytestr_length, unsigned char *bytestr_data)
   }
 
   basic_block_t curr_bb;
+  char block_name[256];
   for (int i = 0, pc = 0; pc < bytestr_length; pc++)
     {
       if (i < bb_n && pc == bb_start_pc[i])
        {
          ++i;
-         curr_bb.gcc_bb = gcc_jit_function_new_block (comp.func, NULL);
+         snprintf (block_name, sizeof (block_name), "bb_%d", i);
+         curr_bb.gcc_bb = gcc_jit_function_new_block (comp.func, block_name);
          curr_bb.terminated = false;
        }
       bb_map[pc] = curr_bb;