diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2004-09-11 21:14:39 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-09-11 21:14:39 +0000 |
commit | a38b644be61f5131051591c489f343b6008e555e (patch) | |
tree | 02ed409cddb73dd4e5bef2d9859d272ef3ce4744 /gcc/tree.h | |
parent | 68a97276d689ed61be616643316bc9be453e412b (diff) | |
download | gcc-a38b644be61f5131051591c489f343b6008e555e.zip gcc-a38b644be61f5131051591c489f343b6008e555e.tar.gz gcc-a38b644be61f5131051591c489f343b6008e555e.tar.bz2 |
tree.c (tree_code_size): New function, bulk of code from tree_size.
* tree.c (tree_code_size): New function, bulk of code from tree_size.
(tree_size, make_node): Use it.
* tree-ssa-pre.c (init_pre): Use it.
* tree.h: Prototype it.
From-SVN: r87371
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2650,6 +2650,11 @@ extern tree decl_assembler_name (tree); extern size_t tree_size (tree); +/* Compute the number of bytes occupied by a tree with code CODE. This + function cannot be used for TREE_VEC or PHI_NODE codes, which are of + variable length. */ +extern size_t tree_code_size (enum tree_code); + /* Lowest level primitive for allocating a node. The TREE_CODE is the only argument. Contents are initialized to zero except for a few of the common fields. */ |