From 17795822b27b7b5381525b1d7c98ca181be9bc80 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Wed, 12 Aug 2015 20:09:33 +0000 Subject: Revert "replace several uses of the anon namespace with GCC_FINAL" This reverts commit daa5a8a3cf9b04cd9af5544c61e12e6dca14f870. From-SVN: r226834 --- gcc/tree-ssa-sink.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/tree-ssa-sink.c') diff --git a/gcc/tree-ssa-sink.c b/gcc/tree-ssa-sink.c index 8b7a02d..8118f35 100644 --- a/gcc/tree-ssa-sink.c +++ b/gcc/tree-ssa-sink.c @@ -590,7 +590,9 @@ 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. */ -static const pass_data pass_data_sink_code = +namespace { + +const pass_data pass_data_sink_code = { GIMPLE_PASS, /* type */ "sink", /* name */ @@ -605,7 +607,7 @@ static const pass_data pass_data_sink_code = TODO_update_ssa, /* todo_flags_finish */ }; -class pass_sink_code GCC_FINAL : public gimple_opt_pass +class pass_sink_code : public gimple_opt_pass { public: pass_sink_code (gcc::context *ctxt) @@ -636,6 +638,8 @@ pass_sink_code::execute (function *fun) return 0; } +} // anon namespace + gimple_opt_pass * make_pass_sink_code (gcc::context *ctxt) { -- cgit v1.1