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)
commit246a460d1f2f3e113a23b40b7cbe332ca4d2c1fc
treee17418047b2257eabafefae37f4cdb46b90e0063
parent295b86e81ddbf763667df8a265a02c1c11add749
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).

llvm-svn: 211117
llvm/test/Object/Inputs/hello-world.macho-x86_64 [new file with mode: 0755]
llvm/test/Object/Inputs/macho-archive-x86_64.a [new file with mode: 0644]
llvm/test/Object/size-trivial-macho.test
llvm/tools/llvm-size/llvm-size.cpp