diff options
author | Xinliang David Li <davidxl@google.com> | 2017-04-13 23:37:12 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2017-04-13 23:37:12 +0000 |
commit | 57dea2d3591791147436dea198a13f7c3c82caea (patch) | |
tree | 64a6e9f9e8dd48fcb53b9a18dfc47643c3cf67b4 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | c5779460f4cbea38dc77911b667a6d76c79c1a3f (diff) | |
download | bcm5719-llvm-57dea2d3591791147436dea198a13f7c3c82caea.tar.gz bcm5719-llvm-57dea2d3591791147436dea198a13f7c3c82caea.zip |
[Profile] PE binary coverage bug fix
PR/32584
Differential Revision: https://reviews.llvm.org/D32023
llvm-svn: 300277
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 78afeda67db..2de5d1b780e 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -133,7 +133,9 @@ getELFKindForNamedSection(StringRef Name, SectionKind K) { // // .section .eh_frame,"a",@progbits - if (Name == getInstrProfCoverageSectionName(false)) + // TODO: to support Win->ELF cross compilation with coverage properly, + // need to pass the module pointer to the following call. + if (Name == getInstrProfCoverageSectionName()) return SectionKind::getMetadata(); if (Name.empty() || Name[0] != '.') return K; |