[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)
commit5fe0455563a1f15ca5dfdedebd7a4e5b4f4ee610
treef7021aef1fc5cfb1f7bb64b972e19acd922f6e20
parentd763f19db33b91c2b0db8c71f219699eaea35139
[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.

llvm-svn: 256220
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Instrumentation/InstrProfiling/PR23499.ll