summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 2de5d1b780e..8ce4dfd4ecc 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -132,10 +132,8 @@ getELFKindForNamedSection(StringRef Name, SectionKind K) {
// section(".eh_frame") gcc will produce:
//
// .section .eh_frame,"a",@progbits
-
- // TODO: to support Win->ELF cross compilation with coverage properly,
- // need to pass the module pointer to the following call.
- if (Name == getInstrProfCoverageSectionName())
+
+ if (Name == getInstrProfCoverageSectionNameInObject(false /*not coff*/))
return SectionKind::getMetadata();
if (Name.empty() || Name[0] != '.') return K;
OpenPOWER on IntegriCloud