From 3daf8bc96a121279030e93f4462ff4daa1ffa8e4 Mon Sep 17 00:00:00 2001 From: Vladimir Stefanovic Date: Thu, 17 Jan 2019 21:50:37 +0000 Subject: [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 --- llvm/lib/Target/Mips/MipsMCInstLower.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Target/Mips/MipsMCInstLower.cpp') 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) { -- cgit v1.2.3