diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-11-01 20:56:15 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-11-01 20:56:15 +0000 |
| commit | 7fc4f5083809a1c139ac3650641709d32cb556aa (patch) | |
| tree | c9218b42e6dda8bf4f217521fb73b26b5fd77b71 /llvm/lib/TableGen/Error.cpp | |
| parent | b9c6f01a817c32b2a7ff444046fe80150a78d12c (diff) | |
| download | bcm5719-llvm-7fc4f5083809a1c139ac3650641709d32cb556aa.tar.gz bcm5719-llvm-7fc4f5083809a1c139ac3650641709d32cb556aa.zip | |
Simplify getStringTableIndex.
The description in the ELF spec is just
---------------------------
If the section name string table section index is greater than or
equal to SHN_LORESERVE (0xff00), this member has the value SHN_XINDEX
(0xffff) and the actual index of the section name string table section
is contained in the sh_link field of the section header at index 0.
---------------------------
So we only have to check for it being SHN_XINDEX. Also, sh_link is
always 32 bits, so don't return an uintX_t.
llvm-svn: 285747
Diffstat (limited to 'llvm/lib/TableGen/Error.cpp')
0 files changed, 0 insertions, 0 deletions

