[all-commits] [llvm/llvm-project] e551b7: [LTO][Legacy] Add new API to query Mach-O CPU (sub...

Visoiu Mistrih Francis via All-commits all-commits at lists.llvm.org
Fri Feb 28 12:57:47 PST 2020


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

  Changed paths:
    M llvm/docs/LinkTimeOptimization.rst
    M llvm/include/llvm-c/lto.h
    M llvm/include/llvm/LTO/legacy/LTOModule.h
    M llvm/lib/LTO/LTOModule.cpp
    A llvm/test/LTO/X86/print-macho-cpu.ll
    M llvm/test/tools/llvm-lto/error.ll
    M llvm/tools/llvm-lto/llvm-lto.cpp
    M llvm/tools/lto/lto.cpp
    M llvm/tools/lto/lto.exports

  Log Message:
  -----------
  [LTO][Legacy] Add new API to query Mach-O CPU (sub)type

Tools working with object files on Darwin (e.g. lipo) may need to know
properties like the CPU type and subtype of a bitcode file. The logic of
converting a triple to a Mach-O CPU_(SUB_)TYPE should be provided by
LLVM instead of relying on tools to re-implement it.

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




More information about the All-commits mailing list