<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/96810>96810</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            MCContext: Rmove the `const char *BeginSymName` parameter from getXCOFFSection
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            platform:aix
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          MaskRay
      </td>
    </tr>
</table>

<pre>
    The `BeginSymName` parameter was designed for Mach-O, which uses the
`.subsections_via_symbols` mechanism. (I think it could be removed for better semantics, but I haven't analyzed thoroughly yet.)

`BeginSymName` got copied to other object file formats, but it doesn't play
well with section symbols (ELF, COFF).

* 13a79bbfe583e1d8cc85d241b580907260065eb8 removed `BeginSymbol` for ELF.
* #96459 removed `BeginSymbol` for COFF.

For better assembler semantics XCOFF should remove `const char *BeginSymName` parameter as well.
Instead, always define the section symbol.
Then, the definition of `DwarfAbbrevSection` and its friends in MCObjecFileInfo.cpp will not need
to provide `const char *BeginSymName`.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU82O2zYQfhr6MliBovV70MHxRsACcRdIcugtGEojkw1FCiJlR336grKaTQIUQU-88PudGfReXy1Rw_J3LH8-4BKUm5sL-q8fcT1I16_NZ0XACv6Ortp-Wsc_cCRWcJhwxpECzXBHDz1tRD0MboYLdurplYkz3JXuFCyePARFjD8zfmIFT_wiPXVBO-u_3DR-8esonfGRd6ROodV-TICJ6gWC0vYr6ACdW0wPkmCm0d12KUkhWvA0og2681FULgFeQOGNLBNlALRo1r-ph5jNLVdlVlgpJEzUu6N_ff2a8eqi7KQj1oELimZw8i_qAgzaUHQwYvguqgP0jvxDdTK4PojvZAzcdVCwZ4Y9bgz4_kMb4efXtmWiTn4yJE6QHrGspRwor46U9lXXVXkvslTmFa95KQrOi5xk9b2UH1JIZ2KIWNP7D23yRsrEsS6yvP4NKHr6yVD7Vjh6T6M0P1YPf0YAeLXN6UEdmTtnfYBO4QxMnP57jdBDbGpXfLE-EPaxGzR3XOOKDdpS3KNfetwRn1Wc93n7sP3V2x83RBPPd5yHk5Qz3T49wFEcbQ86eBhmTbb3oC1czq9xwK029GIHl3TTBHdtDFgXwBL1D7HgYJrdTfe_j7jbO_TNsa-PNR6oScu0zkRZleVBNcRlXiENWdZxntU4pMWx4nVfl2VZU8kPuhFcZLwQRVrlaVomqahkMWBfY5fJQVQs4zSiNokxtzFx8_WgvV-oqYsq5QeDkozfLlyIyWCIW8uOJ9TfmBDx6ucmAp_kcvUs40b74N-ogg6Gmsv57Gygb4EdT_BxG21Q_2u8w-xGuFLYtmSfwWGZTaNCmDw7nphomWivOqhFJp0bmWijif15mmYXD4-JdgvnmWgf-W6N-CcAAP__VXiL-w">