summaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-04 09:26:29 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-04 09:26:29 +0000
commit9b0e5d40d0f720031aa3e449020fffa22597e3c6 (patch)
tree046b846b874b04d1165f5b13e3c53c3879ea4558 /gcc/cgraph.h
parentaeb3c6bcca32aee8ea551ab74b2110d885622349 (diff)
downloadgcc-9b0e5d40d0f720031aa3e449020fffa22597e3c6.tar.gz
PR ipa/68881
* cgraph.h (symtab_node::copy_visibility_from): New function. * symtab.c (symtab_node::copy_visibility_from): New function. * ipa-visibility.c (optimize_weakref): New function. (function_and_variable_visibility): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234708 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index e9292852399..1d39d918b21 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -293,6 +293,9 @@ public:
/* Make DECL local. */
void make_decl_local (void);
+ /* Copy visibility from N. */
+ void copy_visibility_from (symtab_node *n);
+
/* Return desired alignment of the definition. This is NOT alignment useful
to access THIS, because THIS may be interposable and DECL_ALIGN should
be used instead. It however must be guaranteed when output definition