[llvm] [AIX] Support per global code model. (PR #79202)
Zaara Syeda via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 13:18:10 PST 2024
================
@@ -2653,17 +2653,28 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForFunctionDescriptor(
MCSection *TargetLoweringObjectFileXCOFF::getSectionForTOCEntry(
const MCSymbol *Sym, const TargetMachine &TM) const {
- // Use TE storage-mapping class when large code model is enabled so that
- // the chance of needing -bbigtoc is decreased. Also, the toc-entry for
- // EH info is never referenced directly using instructions so it can be
- // allocated with TE storage-mapping class.
+ const XCOFF::StorageMappingClass SMC = [](const MCSymbol *Sym,
+ const TargetMachine &TM) {
+ const MCSymbolXCOFF *XSym = cast<MCSymbolXCOFF>(Sym);
+ // Use large code model toc entries for ehinfo symbols as they are
+ // never refrenced directly. The runtime loads their TOC entries
----------------
syzaara wrote:
nit: refrenced -> referenced
https://github.com/llvm/llvm-project/pull/79202
More information about the llvm-commits
mailing list