diff options
author | Fangrui Song <i@maskray.me> | 2024-05-21 09:27:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 09:27:03 -0700 |
commit | 446f66d685c2470bc7744b1d1538c4728e838e43 (patch) | |
tree | 017465d911536e25f28bdefbf53223cc3c44152f /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | ea43a30899df5c3c36412392c8f4db79973a1c43 (diff) | |
download | llvm-446f66d685c2470bc7744b1d1538c4728e838e43.zip llvm-446f66d685c2470bc7744b1d1538c4728e838e43.tar.gz llvm-446f66d685c2470bc7744b1d1538c4728e838e43.tar.bz2 |
[CodeGen] Assign SHT_LLVM_LTO to .llvm.lto section (#92856)
This follows up to SHT_LLVM_LTO (https://reviews.llvm.org/D153215) and
resolves the comment of the FatLTO patch
https://reviews.llvm.org/D146776#4430626
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 3e1897c..0fc915d 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -523,6 +523,8 @@ static unsigned getELFSectionType(StringRef Name, SectionKind K) { if (hasPrefix(Name, ".llvm.offloading")) return ELF::SHT_LLVM_OFFLOADING; + if (Name == ".llvm.lto") + return ELF::SHT_LLVM_LTO; if (K.isBSS() || K.isThreadBSS()) return ELF::SHT_NOBITS; |