mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
24353f2de2
There are two ways one could implement hiding of linkonce_odr symbols in LTO: * LLVM tells the linker which symbols can be hidden if not used from native files. * The linker tells LLVM which symbols are not used from other object files, but will be put in the dso symbol table if present. GOLD's API is the second option. It was implemented almost 1:1 in llvm by passing the list down to internalize. LLVM already had partial support for the first option. It is also very similar to how ld64 handles hiding these symbols when *not* doing LTO. This patch then * removes the APIs for the DSO list. * marks LTO_SYMBOL_SCOPE_DEFAULT_CAN_BE_HIDDEN all linkonce_odr unnamed_addr global values and other linkonce_odr whose address is not used. * makes the gold plugin responsible for handling the API mismatch. llvm-svn: 193800
36 lines
925 B
Plaintext
36 lines
925 B
Plaintext
lto_get_error_message
|
|
lto_get_version
|
|
lto_initialize_disassembler
|
|
lto_module_create
|
|
lto_module_create_from_fd
|
|
lto_module_create_from_fd_at_offset
|
|
lto_module_create_from_memory
|
|
lto_module_get_num_symbols
|
|
lto_module_get_symbol_attribute
|
|
lto_module_get_symbol_name
|
|
lto_module_get_target_triple
|
|
lto_module_set_target_triple
|
|
lto_module_is_object_file
|
|
lto_module_is_object_file_for_target
|
|
lto_module_is_object_file_in_memory
|
|
lto_module_is_object_file_in_memory_for_target
|
|
lto_module_dispose
|
|
lto_codegen_add_module
|
|
lto_codegen_add_must_preserve_symbol
|
|
lto_codegen_compile
|
|
lto_codegen_create
|
|
lto_codegen_dispose
|
|
lto_codegen_set_debug_model
|
|
lto_codegen_set_pic_model
|
|
lto_codegen_write_merged_modules
|
|
lto_codegen_debug_options
|
|
lto_codegen_set_assembler_args
|
|
lto_codegen_set_assembler_path
|
|
lto_codegen_set_cpu
|
|
lto_codegen_compile_to_file
|
|
LLVMCreateDisasm
|
|
LLVMCreateDisasmCPU
|
|
LLVMDisasmDispose
|
|
LLVMDisasmInstruction
|
|
LLVMSetDisasmOptions
|