aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sheridan <djs@postman.org.uk>2007-05-15 12:26:53 +0100
committerJosh Triplett <josh@freedesktop.org>2007-05-22 14:51:30 -0700
commitbb7ff206a0a1afca8eefbf3fedd7b5962cdec6f1 (patch)
treebb4becf132b9023b86c11d6ee0836d2e75b71d01 /symbol.h
parentRemove extra space. (diff)
downloadsparse-bb7ff206a0a1afca8eefbf3fedd7b5962cdec6f1.tar.gz
sparse-bb7ff206a0a1afca8eefbf3fedd7b5962cdec6f1.tar.bz2
sparse-bb7ff206a0a1afca8eefbf3fedd7b5962cdec6f1.zip
Improved graph generation using subgraph clusters for functions
Improve the dot files generated by graph.c to put the basic blocks for each function into their own labelled subgraph cluster and to distinguish between branches and function calls using different edge types. Requires a change to struct symbol to keep track of the entrypoint associated with a given function identifier. Currently, no attempt is made to handle indirect function calls -- they are just ignored. Signed-off-by: Dan Sheridan <djs@adelard.com>
Diffstat (limited to 'symbol.h')
-rw-r--r--symbol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/symbol.h b/symbol.h
index d1b2868..79e88e1 100644
--- a/symbol.h
+++ b/symbol.h
@@ -148,6 +148,7 @@ struct symbol {
struct statement *inline_stmt;
struct symbol_list *inline_symbol_list;
struct expression *initializer;
+ struct entrypoint *ep;
long long value; /* Initial value */
};
};