[MC][mips] Replace setRType## methods by single setRTypes function. NFC
authorSimon Atanasyan <simon@atanasyan.com>
Fri, 24 Apr 2020 08:54:23 +0000 (11:54 +0300)
committerSimon Atanasyan <simon@atanasyan.com>
Fri, 24 Apr 2020 09:13:27 +0000 (12:13 +0300)
commit0eec6662f66930fa72553731744b50b820d3405b
treeca85e250a51af04e567f07413fe19ebead929af0
parent9aa6792729183ec34f28d74946d1c3a7d3dddce1
[MC][mips] Replace setRType## methods by single setRTypes function. NFC

MCELFObjectWriter::setRType## methods are always used altogether to
build complete MIPS N64 ABI "chain" of relocations. Using single
function for this task makes code less verbose.
llvm/include/llvm/MC/MCELFObjectWriter.h
llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp