[llvm] [SystemZ] Handle indirect symbols (PR #180815)
Ulrich Weigand via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 09:16:26 PST 2026
================
@@ -1275,16 +1244,15 @@ void SystemZAsmPrinter::emitADASection() {
EmittedBytes += PointerSize;
break;
case SystemZII::MO_ADA_INDIRECT_FUNC_DESC: {
- MCSymbol *Alias = OutContext.createTempSymbol(
- Twine(Sym->getName()).concat("@indirect"));
- OutStreamer->emitAssignment(Alias,
- MCSymbolRefExpr::create(Sym, OutContext));
- OutStreamer->emitSymbolAttribute(Alias, MCSA_IndirectSymbol);
----------------
uweigand wrote:
I think we should leave creating the symbol here. (If we want to avoid creating duplicate symbols, we can use getOrCreateSymbol rather than createTempSymbol. That automatically caches the symbol.)
The external name and the indirect bit should be set separately. For the indirect symbol, I think we should keep using `MCSA_IndirectSymbol` and simply handle this flag in `MCSymbolGOFF::setSymbolAttribute`.
https://github.com/llvm/llvm-project/pull/180815
More information about the llvm-commits
mailing list