The callee address is added as an optional operand (MCSymbol) in
AdjustInstrPostInstrSelection() and then used by asm printer to insert:
'.reloc tmplabel, R_MIPS_JALR, symbol
tmplabel:'.
Controlled with '-mips-jalr-reloc', default is true.
Details
Details
- Reviewers
atanasyan - Commits
- rG4474451973ea: Merging r351485: --------------------------------------------------------------…
rG3daf8bc96a12: [mips] Emit .reloc R_{MICRO}MIPS_JALR along with j(al)r(c) $25
rL352137: Merging r351485:
rL351485: [mips] Emit .reloc R_{MICRO}MIPS_JALR along with j(al)r(c) $25
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/Mips/MipsAsmPrinter.cpp | ||
---|---|---|
165 ↗ | (On Diff #181688) |
|
lib/Target/Mips/MipsAsmPrinter.cpp | ||
---|---|---|
165 ↗ | (On Diff #181688) | This 'if' is not to prevent emitting any wrong .reloc but only to skip looping over instructions that certainly don't have an MO_JALR operand. |