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

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 10:58:06 PST 2020


thegameg created this revision.
thegameg added reviewers: steven_wu, mtrent.
thegameg added a project: LLVM.
Herald added a reviewer: deadalnix.
Herald added subscribers: dang, dexonsmith, hiraditya, inglorion.

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.

Unfortunately, tools/lto has no testing infrastructure yet, so there are no tests associated with this patch.


https://reviews.llvm.org/D75067

Files:
  llvm/docs/LinkTimeOptimization.rst
  llvm/include/llvm-c/lto.h
  llvm/include/llvm/LTO/legacy/LTOModule.h
  llvm/lib/LTO/LTOModule.cpp
  llvm/tools/lto/lto.cpp
  llvm/tools/lto/lto.exports

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75067.246258.patch
Type: text/x-patch
Size: 4328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200224/de0a0b43/attachment.bin>


More information about the llvm-commits mailing list