llvm-project/llvm/lib/CodeGen/AsmPrinter
Rafael Espindola 6f1b2852fc 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.

llvm-svn: 193718
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 Remove unneeded "TargetMachine.h" #includes. 2013-02-09 20:54:05 +00:00
DwarfException.h Add a MCTargetStreamer interface. 2013-10-08 13:08:17 +00:00
ErlangGCPrinter.cpp Add a GC plugin for Erlang 2013-03-25 13:47:46 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile
OcamlGCPrinter.cpp Last in the series of removing unnecessary '0' arguments for 2013-01-09 03:52:05 +00:00
Win64Exception.cpp Revert: Emit personality function and Dwarf EH data for Win64 SEH. 2013-07-08 04:43:23 +00:00