Teach llvm-size to know about Mach-O universal files (aka fat files) and
authorKevin Enderby <enderby@apple.com>
Wed, 18 Jun 2014 22:04:40 +0000 (22:04 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 18 Jun 2014 22:04:40 +0000 (22:04 +0000)
commitfb2b9fb894b6c9be8a290bdf69c29f0f5511ba3c
tree870821c76b4ffa05d6db078eaac6d52aae75bd9c
parentce09bda96ee00a1024952faf85e3fa01e0d6bc72
Teach llvm-size to know about Mach-O universal files (aka fat files) and
fat files containing archives.

Also fix a bug in MachOUniversalBinary::ObjectForArch::ObjectForArch()
where it needed a >= when comparing the Index with the number of
objects in a fat file.  As the index starts at 0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211230 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOUniversal.cpp
test/Object/size-trivial-macho.test
tools/llvm-size/llvm-size.cpp