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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Add test through llvm-lto. More extensive testing of the BinaryFormat logic was added in https://reviews.llvm.org/rG7b0a5683fa09be4e60bc93526aad7b63bbca687c.