Have the ELF symbol predicates match more directly the spec.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 12 Jun 2015 17:23:39 +0000 (17:23 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 12 Jun 2015 17:23:39 +0000 (17:23 +0000)
commit18dd79c3966e20a551adeb589252f46fa6aa8225
tree05fac4bf281139d679f67e370e3be24f5064265f
parent0433a64174679335d076783544f2a678b41e160d
Have the ELF symbol predicates match more directly the spec.

The underlaying issues is that this code can't really know if an OS specific or
processor specific section number should return true or false.

One option would be to assert or return an error, but that looks like over
engineering since extensions are not that common.

It seems better to have these be direct implementation of the ELF spec so that
they are natural for someone familiar with ELF reading the code.

Code that does have to handle OS/Architecture specific values can do it at
a higher level.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239618 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFTypes.h
tools/llvm-readobj/ELFDumper.cpp