Skip to content

Commit

Permalink
Don't create implicit comdats.
Browse files Browse the repository at this point in the history
comdats are explicitly represented for some time now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253924 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Nov 23, 2015
1 parent 277704e commit e77aaec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/gold/gold-plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,6 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file,
const Comdat *C = Base->getComdat();
if (C)
sym.comdat_key = strdup(C->getName().str().c_str());
else if (Base->hasWeakLinkage() || Base->hasLinkOnceLinkage())
sym.comdat_key = strdup(sym.name);
}

sym.resolution = LDPR_UNKNOWN;
Expand Down

0 comments on commit e77aaec

Please sign in to comment.