Skip to content

How do I get the future index of a symbol in the AsmPrinter stage? #136538

Open
@StevenYangCC

Description

@StevenYangCC

How do I get the future index of a symbol in the AsmPrinter stage? Because I want to generate a section, and the content of this section is a structured data, in which the symbol’s index in symtab is needed, but I see that when llc generates ELF file, the symbol’s index is determined at the end, so I want to ask if there is any way to get the symbol’s future index in symtab in a more forward stage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    mcMachine (object) codequestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions