llvm-project/llvm/test/Instrumentation/InstrProfiling
Reid Kleckner c6cf918f44 [InstrProf] Use comdats on COFF for available_externally functions
Summary:
r262157 added ELF-specific logic to put a comdat on the __profc_*
globals created for available_externally functions. We should be able to
generalize that logic to all object file formats that support comdats,
i.e. everything other than MachO. This fixes duplicate symbol errors,
since on COFF, linkonce_odr doesn't make the symbol weak.

Fixes PR38251.

Reviewers: davidxl, xur

Subscribers: hiraditya, dmajor, llvm-commits, aheejin

Differential Revision: https://reviews.llvm.org/D49882

llvm-svn: 338082
2018-07-26 22:59:17 +00:00
..
X86
PR23499.ll
always_inline.ll
early-exit.ll [InstrProfiling] Don't exit early when an unused intrinsic is found 2018-01-27 00:01:04 +00:00
icall.ll
linkage.ll [InstrProf] Use comdats on COFF for available_externally functions 2018-07-26 22:59:17 +00:00
no-counters.ll [InstrProfiling] Emit the runtime hook when no counters are lowered 2018-02-28 19:00:08 +00:00
noruntime.ll
platform.ll
profiling.ll [InstrProfiling] Emit the runtime hook when no counters are lowered 2018-02-28 19:00:08 +00:00