aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorHaohai Wen <haohai.wen@intel.com>2025-07-28 15:25:13 +0800
committerGitHub <noreply@github.com>2025-07-28 15:25:13 +0800
commit07d396b6f595eb90fb40f49d8a11f944553b9bfd (patch)
tree8f33497a6a7b3046620e94b97ab1ff1ba11f8e20 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent90de4a4ac96ef314e3af9c43c516d5aaf105777a (diff)
downloadllvm-07d396b6f595eb90fb40f49d8a11f944553b9bfd.zip
llvm-07d396b6f595eb90fb40f49d8a11f944553b9bfd.tar.gz
llvm-07d396b6f595eb90fb40f49d8a11f944553b9bfd.tar.bz2
[COFF] Set .llvmbc and .llvmcmd to metadata section (#150879)
Those are metadata sections for ELF but was not properly set for COFF.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 408d07b..725e951 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -1734,7 +1734,8 @@ MCSection *TargetLoweringObjectFileCOFF::getExplicitSectionGlobal(
Name == getInstrProfSectionName(IPSK_covdata, Triple::COFF,
/*AddSegmentInfo=*/false) ||
Name == getInstrProfSectionName(IPSK_covname, Triple::COFF,
- /*AddSegmentInfo=*/false))
+ /*AddSegmentInfo=*/false) ||
+ Name == ".llvmbc" || Name == ".llvmcmd")
Kind = SectionKind::getMetadata();
int Selection = 0;
unsigned Characteristics = getCOFFSectionFlags(Kind, TM);