[PATCH] D37519: [mips] Use RegisterMCAsmBackend to register all MIPS asm backends. NFC

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 6 07:53:38 PDT 2017


atanasyan created this revision.
Herald added a subscriber: arichardson.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D37519

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37519.114010.patch
Type: text/x-patch
Size: 8971 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170906/34039b59/attachment.bin>


More information about the llvm-commits mailing list