summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sink.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde@tbsaunde.org>2015-08-11 22:39:37 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-08-11 22:39:37 +0000
commit63ab94b6d5d732161780c68fce775bd23f8e2a99 (patch)
treece150cc07d1bbf63f91af92c51be9976c9032f53 /gcc/tree-ssa-sink.c
parent96d4df8b2e1870c2e21495f4354730ead07dbdbf (diff)
replace several uses of the anon namespace with GCC_FINAL
gcc/ChangeLog: 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org> * 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
Diffstat (limited to 'gcc/tree-ssa-sink.c')
-rw-r--r--gcc/tree-ssa-sink.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/tree-ssa-sink.c b/gcc/tree-ssa-sink.c
index 8118f357852..8b7a02d588c 100644
--- a/gcc/tree-ssa-sink.c
+++ b/gcc/tree-ssa-sink.c
@@ -590,9 +590,7 @@ sink_code_in_bb (basic_block bb)
Note that this reduces the number of computations of a = b + c to 1
when we take the else edge, instead of 2.
*/
-namespace {
-
-const pass_data pass_data_sink_code =
+static const pass_data pass_data_sink_code =
{
GIMPLE_PASS, /* type */
"sink", /* name */
@@ -607,7 +605,7 @@ const pass_data pass_data_sink_code =
TODO_update_ssa, /* todo_flags_finish */
};
-class pass_sink_code : public gimple_opt_pass
+class pass_sink_code GCC_FINAL : public gimple_opt_pass
{
public:
pass_sink_code (gcc::context *ctxt)
@@ -638,8 +636,6 @@ pass_sink_code::execute (function *fun)
return 0;
}
-} // anon namespace
-
gimple_opt_pass *
make_pass_sink_code (gcc::context *ctxt)
{