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/sanopt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/sanopt.c') diff --git a/gcc/sanopt.c b/gcc/sanopt.c index dcb3659..269c11d 100644 --- a/gcc/sanopt.c +++ b/gcc/sanopt.c @@ -621,7 +621,9 @@ sanopt_optimize (function *fun) /* Perform optimization of sanitize functions. */ -static const pass_data pass_data_sanopt = +namespace { + +const pass_data pass_data_sanopt = { GIMPLE_PASS, /* type */ "sanopt", /* name */ @@ -634,7 +636,7 @@ static const pass_data pass_data_sanopt = TODO_update_ssa, /* todo_flags_finish */ }; -class pass_sanopt GCC_FINAL : public gimple_opt_pass +class pass_sanopt : public gimple_opt_pass { public: pass_sanopt (gcc::context *ctxt) @@ -743,6 +745,8 @@ pass_sanopt::execute (function *fun) return 0; } +} // anon namespace + gimple_opt_pass * make_pass_sanopt (gcc::context *ctxt) { -- cgit v1.1