Add the -arch flag support to llvm-size like what was done to llvm-nm
authorKevin Enderby <enderby@apple.com>
Tue, 1 Jul 2014 17:19:10 +0000 (17:19 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 1 Jul 2014 17:19:10 +0000 (17:19 +0000)
commitadaa88ecc571c6ae3ed68be894348fff3e88d647
treeef36a7c441b0580980c614662e5d206b9e43f413
parent4797c30d21eb6e1bccff859e252f18ac0e2459ba
Add the -arch flag support to llvm-size like what was done to llvm-nm
to select the slice out of a Mach-O universal file.  This also includes
support for -arch all, selecting the host architecture by default from
a universal file and checking if -arch is used with a standard Mach-O
it matches that architecture.

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