aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2014-12-22 09:54:19 +0100
committerMartin Liska <marxin@gcc.gnu.org>2014-12-22 08:54:19 +0000
commit4008290f65988de470218021818009fddeaf50dd (patch)
tree6176621250914a21a9d2683fd1c64438388fa094 /gcc/cgraph.h
parentfe55e976f18232df8ca3c1c928edb54fe06402c0 (diff)
downloadgcc-4008290f65988de470218021818009fddeaf50dd.zip
gcc-4008290f65988de470218021818009fddeaf50dd.tar.gz
gcc-4008290f65988de470218021818009fddeaf50dd.tar.bz2
New symbol_summary class introduced.
* cgraph.h (symbol_table::allocate_cgraph_symbol): Summary UID is filled up. * symbol-summary.h: New file. * gengtype.c (open_base_files): Add symbol-summary.h. * toplev.c (general_init): Call constructor of symbol_table. From-SVN: r219004
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index fbb9922..0cff779 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -1255,6 +1255,8 @@ public:
int count_materialization_scale;
/* Unique id of the node. */
int uid;
+ /* Summary unique id of the node. */
+ int summary_uid;
/* ID assigned by the profiling. */
unsigned int profile_id;
/* Time profiler: first run of function. */
@@ -1837,6 +1839,10 @@ public:
friend class cgraph_node;
friend class cgraph_edge;
+ symbol_table (): cgraph_max_summary_uid (1)
+ {
+ }
+
/* Initialize callgraph dump file. */
void initialize (void);
@@ -2033,6 +2039,7 @@ public:
int cgraph_count;
int cgraph_max_uid;
+ int cgraph_max_summary_uid;
int edges_count;
int edges_max_uid;
@@ -2361,6 +2368,7 @@ symbol_table::allocate_cgraph_symbol (void)
node->uid = cgraph_max_uid++;
}
+ node->summary_uid = cgraph_max_summary_uid++;
return node;
}