]> granicus.if.org Git - llvm/commit
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)
commitdf65fd32057e9fcb53bad884a18715ff8da43154
tree8329dd65760307ea620c85c50f6b8c5cdf2b7aae
parentdbab00a2d4038d402c208f187f2eea89b865e0e2
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/InstrProfiling.cpp