llvm-6502/lib/CodeGen/AsmPrinter
Rafael Espindola 2cc546db18 Produce .weak_def_can_be_hidden for some linkonce_odr values
With this patch llvm produces a weak_def_can_be_hidden for linkonce_odr
if they are also unnamed_addr or don't have their address taken.

There is not a lot of documentation about .weak_def_can_be_hidden, but
from the old discussion about linkonce_odr_auto_hide and the name of
the directive this looks correct: these symbols can be hidden.

Testing this with the ld64 in Xcode 5 linking clang reduces the number of
exported symbols from 21053 to 19049.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193718 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-30 22:08:11 +00:00
..
ARMException.cpp Add a helper getSymbol to AsmPrinter. 2013-10-29 17:07:16 +00:00
AsmPrinter.cpp Produce .weak_def_can_be_hidden for some linkonce_odr values 2013-10-30 22:08:11 +00:00
AsmPrinterDwarf.cpp [Sparc] Implements exception handling in SPARC with DwarfCFI. 2013-09-26 15:11:00 +00:00
AsmPrinterInlineAsm.cpp Add an instruction deprecation feature to TableGen. 2013-09-12 10:28:05 +00:00
CMakeLists.txt Update the CMake build files. 2013-08-08 23:51:31 +00:00
DIE.cpp Debug Info: support for DW_FORM_ref_addr. 2013-10-29 22:57:10 +00:00
DIE.h Debug Info: support for DW_FORM_ref_addr. 2013-10-29 22:57:10 +00:00
DIEHash.cpp DIEHash: Summary hashing of member functions 2013-10-25 20:04:25 +00:00
DIEHash.h DIEHash: Summary hashing of nested types 2013-10-25 18:38:43 +00:00
DwarfAccelTable.cpp Move accelerator table defines and constants to Dwarf.h since 2013-09-05 18:20:16 +00:00
DwarfAccelTable.h Revert "Give internal classes hidden visibility." 2013-09-11 18:05:11 +00:00
DwarfCFIException.cpp Add a helper getSymbol to AsmPrinter. 2013-10-29 17:07:16 +00:00
DwarfCompileUnit.cpp DebugInfo: Push header handling down into CompileUnit 2013-10-30 20:42:41 +00:00
DwarfCompileUnit.h DebugInfo: Push header handling down into CompileUnit 2013-10-30 20:42:41 +00:00
DwarfDebug.cpp DebugInfo: Push header handling down into CompileUnit 2013-10-30 20:42:41 +00:00
DwarfDebug.h DwarfDebug: Change Abbreviations member from pointer to reference 2013-10-30 17:14:24 +00:00
DwarfException.cpp
DwarfException.h Add a MCTargetStreamer interface. 2013-10-08 13:08:17 +00:00
ErlangGCPrinter.cpp
LLVMBuild.txt
Makefile
OcamlGCPrinter.cpp
Win64Exception.cpp