Add the start of the support for llvm-objdump’s -private-headers for Mach-O files.

This adds the printing of the mach header. Load command printing will be next.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216285 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kevin Enderby
2014-08-22 20:35:18 +00:00
parent bf9d5dfc3d
commit d9757b42ad
5 changed files with 302 additions and 0 deletions

View File

@ -834,6 +834,8 @@ static void printPrivateFileHeader(const ObjectFile *o) {
printELFFileHeader(o);
} else if (o->isCOFF()) {
printCOFFFileHeader(o);
} else if (o->isMachO()) {
printMachOFileHeader(o);
}
}