Open
Description
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.