]> git.eshelyaron.com Git - emacs.git/commitdiff
let emit_literal_string_func emit a dbg friendly friendly
authorAndrea Corallo <andrea_corallo@yahoo.it>
Mon, 2 Sep 2019 10:13:33 +0000 (12:13 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:37:43 +0000 (11:37 +0100)
src/comp.c

index a08077ee41dee2622635cd348c9e6a4165822b67..3b2f8e4e74dfa47d83b239b38e134fd858947548 100644 (file)
@@ -1567,6 +1567,9 @@ emit_literal_string_func (const char *str_name, const char *str)
                                      str_name,
                                      0, NULL, 0);
       DECL_BLOCK (block, f);
+      gcc_jit_block_add_comment (block,
+                                NULL,
+                                str);
       gcc_jit_lvalue *arr =
        gcc_jit_context_new_global (comp.ctxt,
                                    NULL,