[PATCH] D85740: Universal MachO: support LLVM IR objects

Adrien Guinet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 07:36:23 PDT 2020


aguinet updated this revision to Diff 287663.
aguinet added a comment.

This patch fixes one bug that was present: running llvm-lipo -archs on an LLVM IR object would crash, because we didn't check for that case in `printBinaryArchs`. This new patch fixes it, with an associated test.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85740/new/

https://reviews.llvm.org/D85740

Files:
  llvm/include/llvm/Object/Binary.h
  llvm/include/llvm/Object/MachOUniversal.h
  llvm/include/llvm/Object/MachOUniversalWriter.h
  llvm/lib/Object/Binary.cpp
  llvm/lib/Object/MachOUniversal.cpp
  llvm/lib/Object/MachOUniversalWriter.cpp
  llvm/test/tools/llvm-lipo/Inputs/arm64-ios.ll
  llvm/test/tools/llvm-lipo/Inputs/armv7-ios.ll
  llvm/test/tools/llvm-lipo/Inputs/x64-osx.ll
  llvm/test/tools/llvm-lipo/archs-ir-binary.test
  llvm/test/tools/llvm-lipo/create-arch-ir.test
  llvm/test/tools/llvm-lipo/create-archive-input.test
  llvm/test/tools/llvm-lipo/info-universal-binary-ir.test
  llvm/test/tools/llvm-lipo/thin-universal-binary-ir.test
  llvm/tools/llvm-lipo/CMakeLists.txt
  llvm/tools/llvm-lipo/LLVMBuild.txt
  llvm/tools/llvm-lipo/llvm-lipo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85740.287663.patch
Type: text/x-patch
Size: 30530 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/8bdd2e93/attachment.bin>


More information about the llvm-commits mailing list