Add "-format darwin" to llvm-size to be like darwin's size(1) -m output, and
authorKevin Enderby <enderby@apple.com>
Tue, 17 Jun 2014 17:54:13 +0000 (17:54 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 17 Jun 2014 17:54:13 +0000 (17:54 +0000)
commitacc5e810aaa875698ff032a3b8353194a6d3e247
treeb51b44f3a6fac4da5c6e8bdbba1d247a1cf1b1b8
parent3f1f259c22579278844d9b23cddd04272062021c
Add "-format darwin" to llvm-size to be like darwin's size(1) -m output, and
and the -l option for the long format.  Also when the object is a Mach-O
file and the format is berkeley produce output like darwin’s default size(1)
summary berkeley derived output.

Like System V format, there are also some small changes in how and where
the file names and archive member names are printed for darwin and
Mach-O.

Like the changes to llvm-nm these are the first steps in seeing if it is
possible to make llvm-size produce the same output as darwin's size(1).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211117 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/Inputs/hello-world.macho-x86_64 [new file with mode: 0755]
test/Object/Inputs/macho-archive-x86_64.a [new file with mode: 0644]
test/Object/size-trivial-macho.test
tools/llvm-size/llvm-size.cpp