]> granicus.if.org Git - llvm/commit
[mips] Use RegisterMCAsmBackend to register all MIPS asm backends. NFC
authorSimon Atanasyan <simon@atanasyan.com>
Thu, 7 Sep 2017 12:54:26 +0000 (12:54 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Thu, 7 Sep 2017 12:54:26 +0000 (12:54 +0000)
commit7465dfa45673d855127fc8efe09cf201343784a5
tree0540f2fb0835a2a21bd8faa55dc2575b7beaa768
parent651af0243784137d375a40c97325ffb383845493
[mips] Use RegisterMCAsmBackend to register all MIPS asm backends. NFC

This change converts the `MipsAsmBackend` constructor to the "standard"
form. It makes possible to use `RegisterMCAsmBackend` for the backends
registrations. Now we pass `Triple` instance to the `MipsAsmBackend`
ctor and deduce all required options like endianness and bitness from
the triple. We still need to implement explicit ABI checking for
providing correct options to backends.

Differential revision: https://reviews.llvm.org/D37519

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312720 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.h
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp
lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.h