aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/jit-playback.h
diff options
context:
space:
mode:
authorPetter Tomner <tomner@kth.se>2021-09-09 00:50:06 +0200
committerPetter Tomner <tomner@kth.se>2021-09-11 01:00:48 +0200
commit332a9f7636ca2a49be3a6ee9c610c5dba9e7e2da (patch)
tree8fd2bb6dc81eedfa6db9a6b65ff17e49ed05a5f4 /gcc/jit/jit-playback.h
parent57b7c432cce893e1ba60d9b94a9606df6b419379 (diff)
downloadgcc-332a9f7636ca2a49be3a6ee9c610c5dba9e7e2da.zip
gcc-332a9f7636ca2a49be3a6ee9c610c5dba9e7e2da.tar.gz
gcc-332a9f7636ca2a49be3a6ee9c610c5dba9e7e2da.tar.bz2
libgccjit: Generate debug info for variables
Finalize declares via available helpers after location is set. Set TYPE_NAME of primitives and friends to "int" etc. Debug info is now set properly for variables. Signed-off-by: 2021-09-09 Petter Tomner <tomner@kth.se> gcc/jit/ * jit-playback.c: Moved global var processing to after loc handling. Setting TYPE_NAME for fundamental types. Using common functions for finalizing globals. * jit-playback.h: New method init_types(). Changed get_tree_node_for_type() to method. gcc/testsuite/ * jit.dg/test-error-array-bounds.c: Array is not unsigned * jit.dg/jit.exp: Helper function * jit.dg/test-debuginfo.c: New testcase
Diffstat (limited to 'gcc/jit/jit-playback.h')
-rw-r--r--gcc/jit/jit-playback.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/jit/jit-playback.h b/gcc/jit/jit-playback.h
index 825a3e1..f670c9e 100644
--- a/gcc/jit/jit-playback.h
+++ b/gcc/jit/jit-playback.h
@@ -271,8 +271,13 @@ private:
source_file *
get_source_file (const char *filename);
+ tree
+ get_tree_node_for_type (enum gcc_jit_types type_);
+
void handle_locations ();
+ void init_types ();
+
const char * get_path_c_file () const;
const char * get_path_s_file () const;
const char * get_path_so_file () const;