================
@@ -151,6 +155,8 @@ void MCAsmInfoGOFF::printSwitchToSection(const MCSection 
&Section,
                 Sec.PRAttributes.Executable, Sec.PRAttributes.BindingScope);
       ED->Emitted = true;
       Sec.Emitted = true;
+      if (Sec.hasExternalName())
+        OS << Sec.getName() << " ALIAS \"" << Sec.getExternalName() << "\"\n";
----------------
redstar wrote:

Same.
Looks like using a lamba would avoid the repetition, e.g.

```
auto EmitExternalName = [&Sec]() {
  if (Sec.hasExternalName())
        OS << Sec.getName() << " ALIAS "C'" << Sec.getExternalName() << "'\n";
}
```

https://github.com/llvm/llvm-project/pull/183442
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to