summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-02-18 17:20:22 +0000
committerXinliang David Li <davidxl@google.com>2016-02-18 17:20:22 +0000
commit1153f194bde1fb1b75ed21effef8efb97bb15f59 (patch)
treed4e91530d98d187847e27aac17b5f9a30ac3b7c2
parentc6bef146caf654f44f3176cba78fdec0ec235c8f (diff)
downloadbcm5719-llvm-1153f194bde1fb1b75ed21effef8efb97bb15f59.tar.gz
bcm5719-llvm-1153f194bde1fb1b75ed21effef8efb97bb15f59.zip
Stop creating covmap as note section on ELF
covmap needs to created as non allocatable, but not with SHT_NOTE. The latter was needed to workaround a problem of BFD linker with gc, which is no longer needed. (A more proper longer term fix requires changing FE driver to force referencing the section using linker script). Differential Revision: http://reviews.llvm.org/D17309 llvm-svn: 261228
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index bcaad86a511..5dfdb7acef1 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -155,9 +155,6 @@ getELFKindForNamedSection(StringRef Name, SectionKind K) {
static unsigned getELFSectionType(StringRef Name, SectionKind K) {
- if (Name == getInstrProfCoverageSectionName(false))
- return ELF::SHT_NOTE;
-
if (Name == ".init_array")
return ELF::SHT_INIT_ARRAY;
OpenPOWER on IntegriCloud