diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-06-24 10:20:30 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-06-24 10:20:30 +0000 |
| commit | d7a32ea4b86c04ba0c4736f803527eb393a40867 (patch) | |
| tree | 1b09dcd2e51416a33c0b030346842e8ea6dd3e38 /llvm/test/Object/X86 | |
| parent | 595348228569c587e14bf8cea1c4fdf1b503c104 (diff) | |
| download | bcm5719-llvm-d7a32ea4b86c04ba0c4736f803527eb393a40867.tar.gz bcm5719-llvm-d7a32ea4b86c04ba0c4736f803527eb393a40867.zip | |
Change how symbol sizes are handled in lib/Object.
COFF and MachO only define symbol sizes for common symbols. Reflect that
in the class hierarchy by having a method for common symbols only in the base
and a general one in ELF.
This avoids the need of using a magic value for the size, which had a few
problems
* Most callers didn't check for it.
* The ones that did could not tell the magic value from a file actually having
that value.
llvm-svn: 240529
Diffstat (limited to 'llvm/test/Object/X86')
| -rw-r--r-- | llvm/test/Object/X86/nm-print-size.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Object/X86/nm-print-size.s b/llvm/test/Object/X86/nm-print-size.s new file mode 100644 index 00000000000..6709ed9e97f --- /dev/null +++ b/llvm/test/Object/X86/nm-print-size.s @@ -0,0 +1,7 @@ +// RUN: llvm-mc %s -o %t -filetype=obj -triple=x86_64-pc-linux +// RUN: llvm-nm --print-size %t | FileCheck %s + +// CHECK: 0000000000000000 ffffffffffffffff t a + +a: + .size a, 0xffffffffffffffff |

