[llvm-branch-commits] [llvm] [SystemZ] Emit external aliases required for indirect symbol handling support (PR #183442)
Kai Nacke via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 26 07:29:25 PST 2026
================
@@ -124,6 +124,8 @@ void MCAsmInfoGOFF::printSwitchToSection(const MCSection &Section,
case GOFF::ESD_ST_SectionDefinition: {
OS << Sec.getName() << " CSECT\n";
Sec.Emitted = true;
+ if (Sec.hasExternalName())
+ OS << Sec.getName() << " ALIAS \"" << Sec.getExternalName() << "\"\n";
----------------
redstar wrote:
The syntax of ALIAS is slightly different, see https://www.ibm.com/docs/en/hla-and-tf/1.6.0?topic=statements-alias-instruction:
```suggestion
OS << Sec.getName() << " ALIAS "C'" << Sec.getExternalName() << "'\n";
```
https://github.com/llvm/llvm-project/pull/183442
More information about the llvm-branch-commits
mailing list