|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| | No functional change intended.
llvm-svn: 240961 | 
| | 
| 
| 
| 
| 
| 
| | This allows user code to say Sym.getSize() instead of having to manually fetch
the object.
llvm-svn: 240708 | 
| | 
| 
| 
| | llvm-svn: 240646 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | On ELF that was already the case since getting the size of a symbol
never fails.
On MachO and COFF we could fail trying to get the section of a symbol. But
we don't really need the section, just the section number to know if two
symbols are in the same section or not.
llvm-svn: 240580 | 
| | 
| 
| 
| | llvm-svn: 240575 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| | I will add an explicit test in a second, but this fixes the bots.
llvm-svn: 240372 | 
|  | I will add a second user in the next commit.
llvm-svn: 240366 |