summaryrefslogtreecommitdiff
path: root/gcc/lto/lto.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r--gcc/lto/lto.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index c0f9328b726..32f8326147b 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -46,6 +46,8 @@ along with GCC; see the file COPYING3. If not see
#include "splay-tree.h"
#include "lto-partition.h"
#include "data-streamer.h"
+#include "context.h"
+#include "pass_manager.h"
static GTY(()) tree first_personality_decl;
@@ -3694,7 +3696,7 @@ do_whole_program_analysis (void)
bitmap_obstack_initialize (NULL);
cgraph_state = CGRAPH_STATE_IPA_SSA;
- execute_ipa_pass_list (all_regular_ipa_passes);
+ execute_ipa_pass_list (g->get_passes ()->all_regular_ipa_passes);
symtab_remove_unreachable_nodes (false, dump_file);
if (cgraph_dump_file)