summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/AsmParser
diff options
context:
space:
mode:
authorVladimir Stefanovic <vladimir.stefanovic@rt-rk.com>2019-01-17 21:50:37 +0000
committerVladimir Stefanovic <vladimir.stefanovic@rt-rk.com>2019-01-17 21:50:37 +0000
commit3daf8bc96a121279030e93f4462ff4daa1ffa8e4 (patch)
tree7223dfc35cd801163135f03f5d479623c660d2e3 /llvm/lib/Target/Mips/AsmParser
parent73b51ae160af6b94d4468331ff3fb6855cff3b18 (diff)
downloadbcm5719-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/AsmParser')
-rw-r--r--llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index d2fed686147..f10d100bfe1 100644
--- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -65,10 +65,7 @@ class MCInstrInfo;
} // end namespace llvm
-static cl::opt<bool>
-EmitJalrReloc("mips-jalr-reloc", cl::Hidden,
- cl::desc("MIPS: Emit R_{MICRO}MIPS_JALR relocation with jalr"),
- cl::init(true));
+extern cl::opt<bool> EmitJalrReloc;
namespace {
OpenPOWER on IntegriCloud