[llvm] [BOLT] Move target-specific relocation logic into target handlers (PR #217926)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 02:14:32 PDT 2026
================
@@ -165,12 +165,14 @@ BinaryContext::BinaryContext(std::unique_ptr<MCContext> Ctx,
std::unique_ptr<MCDisassembler> DisAsm,
JournalingStreams Logger)
: Ctx(std::move(Ctx)), DwCtx(std::move(DwCtx)),
- TheTriple(std::move(TheTriple)), SSP(std::move(SSP)),
- TheTarget(TheTarget), TripleName(TripleName), MCE(std::move(MCE)),
- MOFI(std::move(MOFI)), AsmInfo(std::move(AsmInfo)), MII(std::move(MII)),
- STI(std::move(STI)), InstPrinter(std::move(InstPrinter)),
- MIA(std::move(MIA)), MIB(std::move(MIB)), MRI(std::move(MRI)),
- DisAsm(std::move(DisAsm)), Logger(Logger), InitialDynoStats(isAArch64()) {
+ TheTriple(std::move(TheTriple)),
+ RelocHandler(createRelocationHandler(this->TheTriple->getArch())),
+ SSP(std::move(SSP)), TheTarget(TheTarget), TripleName(TripleName),
+ MCE(std::move(MCE)), MOFI(std::move(MOFI)), AsmInfo(std::move(AsmInfo)),
+ MII(std::move(MII)), STI(std::move(STI)),
+ InstPrinter(std::move(InstPrinter)), MIA(std::move(MIA)),
+ MIB(std::move(MIB)), MRI(std::move(MRI)), DisAsm(std::move(DisAsm)),
+ Logger(Logger), InitialDynoStats(isAArch64()) {
----------------
maksimra wrote:
Done.
https://github.com/llvm/llvm-project/pull/217926
More information about the llvm-commits
mailing list