diff options
author | Vladimir Stefanovic <vladimir.stefanovic@rt-rk.com> | 2019-01-17 21:50:37 +0000 |
---|---|---|
committer | Vladimir Stefanovic <vladimir.stefanovic@rt-rk.com> | 2019-01-17 21:50:37 +0000 |
commit | 3daf8bc96a121279030e93f4462ff4daa1ffa8e4 (patch) | |
tree | 7223dfc35cd801163135f03f5d479623c660d2e3 /llvm/lib/Target/Mips/MipsMCInstLower.cpp | |
parent | 73b51ae160af6b94d4468331ff3fb6855cff3b18 (diff) | |
download | bcm5719-llvm-3daf8bc96a121279030e93f4462ff4daa1ffa8e4.tar.gz bcm5719-llvm-3daf8bc96a121279030e93f4462ff4daa1ffa8e4.zip |
[mips] Emit .reloc R_{MICRO}MIPS_JALR along with j(al)r(c) $25
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.
Differential revision: https://reviews.llvm.org/D56694
llvm-svn: 351485
Diffstat (limited to 'llvm/lib/Target/Mips/MipsMCInstLower.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsMCInstLower.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsMCInstLower.cpp b/llvm/lib/Target/Mips/MipsMCInstLower.cpp index 46b37ceae39..4a7c0ce2be1 100644 --- a/llvm/lib/Target/Mips/MipsMCInstLower.cpp +++ b/llvm/lib/Target/Mips/MipsMCInstLower.cpp @@ -117,6 +117,8 @@ MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO, case MipsII::MO_CALL_LO16: TargetKind = MipsMCExpr::MEK_CALL_LO16; break; + case MipsII::MO_JALR: + return MCOperand(); } switch (MOTy) { |