https://bugs.llvm.org/show_bug.cgi?id=36325
Bug ID: 36325
Summary: We should add hidden visibility to linkonce_odr +
unnamed_addr
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Interprocedural Optimizations
Assignee: unassignedb...@nondot.org
Reporter: rafael.espind...@gmail.com
CC: llvm-bugs@lists.llvm.org, pe...@pcc.me.uk,
steve...@apple.com, tejohn...@google.com
This optimization is normally done during linking (always on MachO, if using
LTO in other formats).
If the GV has the *global* unnamed_addr, we could give it hidden visibility
earlier on. For example,
class foo {
virtual void bar() {}
virtual void zed();
};
void foo::zed() {}
Produces
define linkonce_odr void @_ZN3foo3barEv(%class.foo*) unnamed_addr
We could add hidden to it in GlobalOpt.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs