Also use --icf=safe if we are being linked by gold.

llvm-svn: 223394
This commit is contained in:
Rafael Espindola 2014-12-04 22:16:08 +00:00
parent be5e1e5c9b
commit 12887e989e
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ function(add_link_opts target_name)
if(LLVM_LINKER_IS_GOLD)
# With gold gc-sections is always safe.
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,--gc-sections")
LINK_FLAGS " -Wl,--gc-sections -Wl,--icf=safe")
endif()
if(NOT LLVM_NO_DEAD_STRIP)