[PGO] Use multiple comdat groups for COFF
authorFangrui Song <i@maskray.me>
Tue, 4 Aug 2020 04:32:44 +0000 (21:32 -0700)
committerFangrui Song <i@maskray.me>
Tue, 4 Aug 2020 04:33:16 +0000 (21:33 -0700)
commitb959906cb9e79f844ea4e34aa701f21bad007253
tree8fff9f4e9cc0231e351bfcb192fe9a9fa9d2809b
parent6bc7ea2d8d8638f5bb753715e9023df514e814e9
[PGO] Use multiple comdat groups for COFF

D84723 caused multiple definition issues (related to comdat) on Windows:
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/67465
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Instrumentation/InstrProfiling/PR23499.ll
llvm/test/Instrumentation/InstrProfiling/comdat.ll
llvm/test/Instrumentation/InstrProfiling/linkage.ll