From 63ab94b6d5d732161780c68fce775bd23f8e2a99 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Tue, 11 Aug 2015 22:39:37 +0000 Subject: replace several uses of the anon namespace with GCC_FINAL gcc/ChangeLog: 2015-08-11 Trevor Saunders * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c, graphite.c, init-regs.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c, omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c, tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c, tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous namespace. From-SVN: r226793 --- gcc/dse.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'gcc/dse.c') diff --git a/gcc/dse.c b/gcc/dse.c index ff26fc0..6a0cc07 100644 --- a/gcc/dse.c +++ b/gcc/dse.c @@ -3725,9 +3725,7 @@ rest_of_handle_dse (void) return 0; } -namespace { - -const pass_data pass_data_rtl_dse1 = +static const pass_data pass_data_rtl_dse1 = { RTL_PASS, /* type */ "dse1", /* name */ @@ -3740,7 +3738,7 @@ const pass_data pass_data_rtl_dse1 = TODO_df_finish, /* todo_flags_finish */ }; -class pass_rtl_dse1 : public rtl_opt_pass +class pass_rtl_dse1 GCC_FINAL : public rtl_opt_pass { public: pass_rtl_dse1 (gcc::context *ctxt) @@ -3757,17 +3755,13 @@ public: }; // class pass_rtl_dse1 -} // anon namespace - rtl_opt_pass * make_pass_rtl_dse1 (gcc::context *ctxt) { return new pass_rtl_dse1 (ctxt); } -namespace { - -const pass_data pass_data_rtl_dse2 = +static const pass_data pass_data_rtl_dse2 = { RTL_PASS, /* type */ "dse2", /* name */ @@ -3780,7 +3774,7 @@ const pass_data pass_data_rtl_dse2 = TODO_df_finish, /* todo_flags_finish */ }; -class pass_rtl_dse2 : public rtl_opt_pass +class pass_rtl_dse2 GCC_FINAL : public rtl_opt_pass { public: pass_rtl_dse2 (gcc::context *ctxt) @@ -3797,8 +3791,6 @@ public: }; // class pass_rtl_dse2 -} // anon namespace - rtl_opt_pass * make_pass_rtl_dse2 (gcc::context *ctxt) { -- cgit v1.1