diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-11 22:39:37 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-11 22:39:37 +0000 |
commit | daa5a8a3cf9b04cd9af5544c61e12e6dca14f870 (patch) | |
tree | ce150cc07d1bbf63f91af92c51be9976c9032f53 /gcc/ipa-visibility.c | |
parent | 5a45f1493b439382038f66e2fa06dd8d17f37ee8 (diff) | |
download | gcc-daa5a8a3cf9b04cd9af5544c61e12e6dca14f870.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226793 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-visibility.c')
-rw-r--r-- | gcc/ipa-visibility.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 93073d80d10..00a157ab567 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -728,9 +728,7 @@ function_and_variable_visibility (bool whole_program) /* Local function pass handling visibilities. This happens before LTO streaming so in particular -fwhole-program should be ignored at this level. */ -namespace { - -const pass_data pass_data_ipa_function_and_variable_visibility = +static const pass_data pass_data_ipa_function_and_variable_visibility = { SIMPLE_IPA_PASS, /* type */ "visibility", /* name */ @@ -754,11 +752,7 @@ whole_program_function_and_variable_visibility (void) return 0; } -} // anon namespace - -namespace { - -const pass_data pass_data_ipa_whole_program_visibility = +static const pass_data pass_data_ipa_whole_program_visibility = { IPA_PASS, /* type */ "whole-program", /* name */ @@ -771,7 +765,7 @@ const pass_data pass_data_ipa_whole_program_visibility = ( TODO_remove_functions | TODO_dump_symtab ), /* todo_flags_finish */ }; -class pass_ipa_whole_program_visibility : public ipa_opt_pass_d +class pass_ipa_whole_program_visibility GCC_FINAL : public ipa_opt_pass_d { public: pass_ipa_whole_program_visibility (gcc::context *ctxt) @@ -801,8 +795,6 @@ public: }; // class pass_ipa_whole_program_visibility -} // anon namespace - ipa_opt_pass_d * make_pass_ipa_whole_program_visibility (gcc::context *ctxt) { |