[PATCH] D67700: [Object] Extend MachOUniversalBinary::getObjectForArch
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 02:40:48 PDT 2019
alexshap created this revision.
alexshap added reviewers: smeenai, compnerd, mtrent.
Herald added subscribers: seiya, rupprecht.
Herald added a project: LLVM.
A particular slice of a universal binary can be either a MachO object or an archive
(although the class MachOUniversalBinary doesn't store them explicitly, instead, they can be constructed "on demand"
via calling the method ObjectForArch::getAsObjectFile or ObjectForArch::getAsArchive)
Before this patch MachOUniversalBinary had only a method (getObjectForArch)
to look up a slice for a particular architecture assuming that the slice
is a MachO object. We generalize it and make it return the corresponding instance of ObjectForArch instead;
Test plan: make check-all
Repository:
rL LLVM
https://reviews.llvm.org/D67700
Files:
include/llvm/Object/MachOUniversal.h
lib/DebugInfo/Symbolize/Symbolize.cpp
lib/Object/MachOUniversal.cpp
lib/Object/Object.cpp
lib/ProfileData/Coverage/CoverageMappingReader.cpp
tools/llvm-lipo/llvm-lipo.cpp
tools/llvm-objdump/MachODump.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67700.220636.patch
Type: text/x-patch
Size: 5598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190918/000dadd2/attachment.bin>
More information about the llvm-commits
mailing list