diff options
author | Haohai Wen <haohai.wen@intel.com> | 2025-07-28 15:25:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-28 15:25:13 +0800 |
commit | 07d396b6f595eb90fb40f49d8a11f944553b9bfd (patch) | |
tree | 8f33497a6a7b3046620e94b97ab1ff1ba11f8e20 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 90de4a4ac96ef314e3af9c43c516d5aaf105777a (diff) | |
download | llvm-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.cpp | 3 |
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); |