[PGO] Fix another comdat related issue for COFF
authorXinliang David Li <davidxl@google.com>
Tue, 22 Dec 2015 00:11:15 +0000 (00:11 +0000)
committerXinliang David Li <davidxl@google.com>
Tue, 22 Dec 2015 00:11:15 +0000 (00:11 +0000)
commitceb49e0185080711a45510fe5c3aca7ed8aa1f34
treed32a61f7a69bd192eaa07374074da655a2ab460c
parent72265920eac10f4ee06827d68e8a627255856603
[PGO] Fix another comdat related issue for COFF

The linker requires that a comdat section must be associated
with a another comdat section that precedes it. This
means the comdat section's name needs to use the  profile name
var's name.

Patch tested by Johan Engelen.

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