Bug ID: 36325
           Summary: We should add hidden visibility to linkonce_odr +
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Interprocedural Optimizations

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() {}


define linkonce_odr void @_ZN3foo3barEv(*) 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

Reply via email to