Implement MachOObjectFile::isSectionData() and MachOObjectFile::isSectionBSS
authorKevin Enderby <enderby@apple.com>
Mon, 19 May 2014 20:36:02 +0000 (20:36 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 19 May 2014 20:36:02 +0000 (20:36 +0000)
commit86ad7b70cb994a9ebde84053026e560a37061ce9
tree050f6c4d352f7dde4f1b7e8d2e4d1cdc936a361f
parentca162faee2e8f9e9f8938b164a0e959307194baa
Implement MachOObjectFile::isSectionData() and MachOObjectFile::isSectionBSS
so that llvm-size will total up all the sections in the Berkeley format.  This
allows for rough categorizations for Mach-O sections.  And allows the total of
llvm-size’s Berkeley and System V formats to be the same.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOObjectFile.cpp
test/Object/Inputs/macho-text-data-bss.macho-x86_64 [new file with mode: 0644]
test/Object/size-trivial-macho.test [new file with mode: 0644]