forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement MachOObjectFile::isSectionData() and MachOObjectFile::isSec…
…tionBSS 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
- Loading branch information
Showing
3 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
RUN: llvm-size -A %p/Inputs/macho-text-data-bss.macho-x86_64 \ | ||
RUN: | FileCheck %s -check-prefix A | ||
RUN: llvm-size -B %p/Inputs/macho-text-data-bss.macho-x86_64 \ | ||
RUN: | FileCheck %s -check-prefix B | ||
|
||
A: section size addr | ||
A: __text 12 0 | ||
A: __data 4 12 | ||
A: __bss 4 112 | ||
A: __compact_unwind 32 16 | ||
A: __eh_frame 64 48 | ||
A: Total 116 | ||
|
||
B: text data bss dec hex filename | ||
B: 12 100 4 116 74 |