diff options
author | Xinliang David Li <davidxl@google.com> | 2017-04-14 17:48:40 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2017-04-14 17:48:40 +0000 |
commit | 4a5ddf8038a58ea1c05f83601a9cea445ca288bb (patch) | |
tree | c0d637885db0706ad9ab456e27919822eddc8155 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 9c27d79520a2f22121b33fb2815fe8e9a5e19b8e (diff) | |
download | llvm-4a5ddf8038a58ea1c05f83601a9cea445ca288bb.zip llvm-4a5ddf8038a58ea1c05f83601a9cea445ca288bb.tar.gz llvm-4a5ddf8038a58ea1c05f83601a9cea445ca288bb.tar.bz2 |
[Profile] Make host tool aware of object format when quering prof section names
Differential Revision: https://reviews.llvm.org/D32073
llvm-svn: 300352
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 2de5d1b..8ce4dfd 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; |