llvm-project
af456dfa - [BOLT] Refactor tracking internals of BinaryFunction. NFCI (#167074)

Commit
3 days ago
[BOLT] Refactor tracking internals of BinaryFunction. NFCI (#167074) In addition to tracking offsets inside a `BinaryFunction` that are referenced by data relocations, we need to track those relocations too. Plus, we will need to map symbols referenced by such relocations back to the containing function. This change introduces `BinaryFunction::InternalRefDataRelocations` to track the aforementioned relocations and expands `BinaryContext::SymbolToFunctionMap` to include local/temp symbols involved in relocation processing. There is no functional change introduced that should affect the output. Future PRs will use the new tracking capabilities.
Author
Parents
Loading