aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2021-02-24 00:37:54 -0800
committerPetr Hosek <phosek@google.com>2021-02-24 00:41:43 -0800
commit11a53f47fb3448c747e18519f3799c919ec65aa1 (patch)
tree2cc50a63f93887eaa7e94148ef3ef1de64896976 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent77bd454da34e9cfba6cb007bdf25fc422b947641 (diff)
downloadllvm-11a53f47fb3448c747e18519f3799c919ec65aa1.zip
llvm-11a53f47fb3448c747e18519f3799c919ec65aa1.tar.gz
llvm-11a53f47fb3448c747e18519f3799c919ec65aa1.tar.bz2
Revert "[InstrProfiling] Use nobits as __llvm_prf_cnts section type in ELF"
This reverts commit 6b286d93f7ec8518c685a302269e44b06a0a24f3 because in some cases when the optimizer evaluates the global initializer, __llvm_prf_cnts may not be entirely zero initialized.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index c1383ba..2530fdc 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -440,10 +440,6 @@ static SectionKind getELFKindForNamedSection(StringRef Name, SectionKind K) {
Name == ".llvmbc" || Name == ".llvmcmd")
return SectionKind::getMetadata();
- if (Name == getInstrProfSectionName(IPSK_cnts, Triple::ELF,
- /*AddSegmentInfo=*/false))
- return SectionKind::getBSS();
-
if (Name.empty() || Name[0] != '.') return K;
// Default implementation based on some magic section names.