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)
commitc74ac023d83730307835b6c67bbfb326b64eaf62
tree6657f77604910e603e94d6f04308b9c0044e9d26
parent141e8bdfc26a5c83c12df63b08c9c71f94038bb0
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.

llvm-svn: 239618
llvm/include/llvm/Object/ELFTypes.h
llvm/tools/llvm-readobj/ELFDumper.cpp