[llvm-readobj] MachO: Dump segment command.
authorDavide Italiano <davide@freebsd.org>
Wed, 2 Sep 2015 16:24:24 +0000 (16:24 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 2 Sep 2015 16:24:24 +0000 (16:24 +0000)
commitd1f099682ea60c6e168310f95f2c3da036c3901a
tree615c894ee810a1e6bd7c7d68353f80ccf0bb4da6
parentaf0beb0a5cafde78b2192ca43b54bc9df5ee93ef
[llvm-readobj] MachO: Dump segment command.

Example output:

File: <stdin>
Format: Mach-O arm
Arch: arm
AddressSize: 32bit
Segment {
  Cmd: LC_SEGMENT
  Name:
  Size: 260
  vmaddr: 0x0
  vmsize: 0x10
  fileoff: 408
  filesize: 408
  maxprot: rwx
  initprot: rwx
  nsects: 3
  flags: 0x0
}

Differential Revision:  http://reviews.llvm.org/D12542

llvm-svn: 246665
llvm/tools/llvm-readobj/MachODumper.cpp
llvm/tools/llvm-readobj/ObjDumper.h
llvm/tools/llvm-readobj/llvm-readobj.cpp