Fix PR 23499 - Avoid multiple profile counters for functions in comdat sections.
authorDiego Novillo <dnovillo@google.com>
Wed, 27 May 2015 16:44:47 +0000 (16:44 +0000)
committerDiego Novillo <dnovillo@google.com>
Wed, 27 May 2015 16:44:47 +0000 (16:44 +0000)
commit98b4cf8fcaf391794de17bb10bea1ec03bc0133a
tree5444f281aa748683188c2b5439355f66ef999b37
parentdead71a829036ef5dc3b05d4a0c2185472cf68fc
Fix PR 23499 - Avoid multiple profile counters for functions in comdat sections.

Counter symbols created for linkonce functions are not discarded by ELF
linkers unless the symbols are placed in the same comdat section as its
associated function.

llvm-svn: 238335
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp