diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-19 12:32:48 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-19 12:32:48 +0000 |
commit | f00e3d4e655069121d9cca74d6b70219a9c6378f (patch) | |
tree | 139ddb25f5f33f8cd0aafe729081e7145d9480dc /gcc/context.c | |
parent | f710ca61baca6ba7b6e513b68a9397e7b635989f (diff) | |
download | gcc-f00e3d4e655069121d9cca74d6b70219a9c6378f.zip gcc-f00e3d4e655069121d9cca74d6b70219a9c6378f.tar.gz gcc-f00e3d4e655069121d9cca74d6b70219a9c6378f.tar.bz2 |
context.h (context::set_passes): New.
* context.h (context::set_passes): New.
* context.c (context::context): Do not create pass manager.
* toplev.c (general_init): Create pass manager here.
From-SVN: r248268
Diffstat (limited to 'gcc/context.c')
-rw-r--r-- | gcc/context.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/context.c b/gcc/context.c index bacad5a..22d91b4 100644 --- a/gcc/context.c +++ b/gcc/context.c @@ -29,14 +29,9 @@ along with GCC; see the file COPYING3. If not see gcc::context *g; gcc::context::context () + : m_passes (NULL), m_dumps (new gcc::dump_manager ()) { have_offload = false; - - /* The pass manager's constructor uses the dump manager (to set up - dumps for the various passes), so the dump manager must be set up - before the pass manager. */ - m_dumps = new gcc::dump_manager (); - m_passes = new gcc::pass_manager (this); } gcc::context::~context () |