[all-commits] [llvm/llvm-project] 726c34: [macho][NFC] Extract all CPU_(SUB_)TYPE logic to l...

Visoiu Mistrih Francis via All-commits all-commits at lists.llvm.org
Thu Feb 20 10:29:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 726c342ce27ada28efe90cb04ffb69c75065710a
      https://github.com/llvm/llvm-project/commit/726c342ce27ada28efe90cb04ffb69c75065710a
  Author: Francis Visoiu Mistrih <francisvm at yahoo.com>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M llvm/include/llvm/Object/MachO.h
    M llvm/lib/Object/MachOObjectFile.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendDarwin.h
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
    M llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp

  Log Message:
  -----------
  [macho][NFC] Extract all CPU_(SUB_)TYPE logic to libObject

This moves all the logic of converting LLVM Triples to
MachO::CPU_(SUB_)TYPE from the specific target (Target)AsmBackend to
more convenient functions in libObject.

This also gets rid of the separate two X86AsmBackend classes.

Differential Revision: https://reviews.llvm.org/D74808




More information about the All-commits mailing list