This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] Add support for dumping macho min version load command
ClosedPublic

Authored by davide on Aug 26 2015, 11:01 AM.

Details

Summary

Example output:

File: <stdin>
Format: Mach-O arm
Arch: arm
AddressSize: 32bit
MinVersion {

Cmd: LC_VERSION_MIN_IPHONEOS
Size: 16
Version: 99.8.7
SDK: n/a

}

Meta-question: is this the granularity we want? llvm-objdump dumps this as part of -private-headers. Should I change that to match that behavior, or is it fine?
Tests will be added when this replaces macho-dump.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 33224.Aug 26 2015, 11:01 AM
davide retitled this revision from to [llvm-readobj] Add support for dumping macho min version load command.
davide updated this object.
davide added reviewers: grosbach, rafael, echristo.
davide added a subscriber: llvm-commits.
rafael accepted this revision.Aug 26 2015, 11:56 AM
rafael edited edge metadata.

LGTM

tools/llvm-readobj/MachODumper.cpp
636 ↗(On Diff #33224)

StringRef

This revision is now accepted and ready to land.Aug 26 2015, 11:56 AM
This revision was automatically updated to reflect the committed changes.