From 8df3549436f131745625226f1804c385540c63b8 Mon Sep 17 00:00:00 2001 From: Florian Liekweg Date: Tue, 30 Nov 2004 15:49:27 +0000 Subject: [PATCH] include 'dump' [r4524] --- ir/ana2/pto.c | 9 +++++++++ ir/ana2/pto.h | 6 ++++++ ir/ana2/pto_name.c | 5 ++++- ir/ana2/pto_name.h | 5 ++++- 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/ir/ana2/pto.c b/ir/ana2/pto.c index 39e196a36..a293db356 100644 --- a/ir/ana2/pto.c +++ b/ir/ana2/pto.c @@ -106,6 +106,12 @@ void pto_run () DBGPRINT (1, (stdout, "END PTO\n")); } +/* Dump all interesting stuff to a bunch of files */ +void pto_dump () +{ + pto_dump_names ("names.dot"); +} + void pto_cleanup () { /* todo: clean up our own mess */ @@ -126,6 +132,9 @@ void pto_cleanup () /* $Log$ + Revision 1.11 2004/11/30 15:49:27 liekweg + include 'dump' + Revision 1.10 2004/11/30 14:46:41 liekweg Correctly reset main graph; remove dbugging stuff diff --git a/ir/ana2/pto.h b/ir/ana2/pto.h index eee19008a..5876a9a7c 100644 --- a/ir/ana2/pto.h +++ b/ir/ana2/pto.h @@ -33,6 +33,9 @@ /* Perform PTO on all visible graphs. */ void pto_init (int); void pto_run (void); +/* Dump all interesting stuff to a bunch of files */ +void pto_dump (void); +/* Clean up our mess */ void pto_cleanup (void); /* =================================================== @@ -46,6 +49,9 @@ void pto_cleanup (void); /* $Log$ + Revision 1.7 2004/11/30 15:49:27 liekweg + include 'dump' + Revision 1.6 2004/11/24 14:53:55 liekweg Bugfixes diff --git a/ir/ana2/pto_name.c b/ir/ana2/pto_name.c index 67b209b7b..4d47eb5fb 100644 --- a/ir/ana2/pto_name.c +++ b/ir/ana2/pto_name.c @@ -366,7 +366,7 @@ desc_t *new_ent_name (entity *ent) # undef N_GLOB_INITIAL_FIELDS /* Dump all names to a file of the given name */ -void pto_dump (const char *name) +void pto_dump_names (const char *name) { desc_t *desc = all_descs; FILE *stream = fopen (name, "w"); @@ -424,6 +424,9 @@ void pto_name_cleanup () /* $Log$ + Revision 1.4 2004/11/30 15:49:27 liekweg + include 'dump' + Revision 1.3 2004/11/30 14:47:54 liekweg fix initialisation; do correct iteration diff --git a/ir/ana2/pto_name.h b/ir/ana2/pto_name.h index fd227278e..86c79f621 100644 --- a/ir/ana2/pto_name.h +++ b/ir/ana2/pto_name.h @@ -74,7 +74,7 @@ typedef struct arr_desc_str Global Prototypes: =================================================== */ /* Dump all names to a file of the given name */ -void pto_dump (const char*); +void pto_dump_names (const char*); /* Find the given descriptor's entry for the given entity */ qset_t *get_entry (desc_t*, entity*); @@ -102,6 +102,9 @@ void pto_name_cleanup (void); /* $Log$ + Revision 1.4 2004/11/30 15:49:27 liekweg + include 'dump' + Revision 1.3 2004/11/30 14:47:54 liekweg fix initialisation; do correct iteration -- 2.20.1