aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 9a47ba2..d430bc5 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -43,6 +43,15 @@ along with GCC; see the file COPYING3. If not see
#include "dominance.h"
#include "cfg.h"
#include "basic-block.h"
+#include "hash-map.h"
+#include "is-a.h"
+#include "plugin-api.h"
+#include "vec.h"
+#include "machmode.h"
+#include "hard-reg-set.h"
+#include "input.h"
+#include "function.h"
+#include "ipa-ref.h"
#include "cgraph.h"
#include "intl.h"
#include "tree-ssa-alias.h"
@@ -54,7 +63,6 @@ along with GCC; see the file COPYING3. If not see
#include "timevar.h"
#include "dumpfile.h"
#include "gimple-ssa.h"
-#include "cgraph.h"
#include "tree-cfg.h"
#include "tree-ssa.h"
#include "value-prof.h"
@@ -63,6 +71,8 @@ along with GCC; see the file COPYING3. If not see
#include "rtl.h"
#include "ipa-utils.h"
#include "lto-streamer.h"
+#include "alloc-pool.h"
+#include "ipa-prop.h"
#include "ipa-inline.h"
#include "cfgloop.h"
#include "gimple-pretty-print.h"
@@ -243,6 +253,15 @@ cgraph_node::record_function_versions (tree decl1, tree decl2)
after->prev = before;
}
+/* Initialize callgraph dump file. */
+
+void
+symbol_table::initialize (void)
+{
+ if (!dump_file)
+ dump_file = dump_begin (TDI_cgraph, NULL);
+}
+
/* Allocate new callgraph node and insert it into basic data structures. */
cgraph_node *