llvm-project/llvm/lib/ProfileData
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
..
Coverage Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00
CMakeLists.txt GCOV: Move GCOV from IR & Support into ProfileData to fix layering 2017-11-03 20:57:10 +00:00
GCOV.cpp IWYU for llvm-config.h in llvm, additions. 2018-04-30 14:59:11 +00:00
InstrProf.cpp [InstrProf] Use comdats on COFF for available_externally functions 2018-07-26 22:59:17 +00:00
InstrProfReader.cpp [ADT] Replace std::isprint by llvm::isPrint. 2018-07-26 15:31:41 +00:00
InstrProfWriter.cpp Support: Simplify endian stream interface. NFCI. 2018-05-18 19:46:24 +00:00
LLVMBuild.txt
ProfileSummaryBuilder.cpp [ProfileData] Change std::sort to llvm::sort in response to r327219 2018-04-13 19:46:36 +00:00
SampleProf.cpp Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
SampleProfReader.cpp Fix a warning issued by clang. 2018-06-11 23:09:04 +00:00
SampleProfWriter.cpp [NFC] Change sample profile format enum name SPF_Raw_Binary to SPF_Binary. 2018-06-12 05:53:49 +00:00