[Object/ELF] sh_type is not a bitfield. Fixes RuntimeDyld test failure on ARM.

llvm-svn: 188220
This commit is contained in:
Michael J. Spencer 2013-08-12 22:59:14 +00:00
parent a5e5698441
commit ef1b5334b2
1 changed files with 2 additions and 2 deletions

View File

@ -577,14 +577,14 @@ ELFObjectFile<ELFT>::isSectionRequiredForExecution(DataRefImpl Sec,
template <class ELFT>
error_code ELFObjectFile<ELFT>::isSectionVirtual(DataRefImpl Sec,
bool &Result) const {
Result = toELFShdrIter(Sec)->sh_type & ELF::SHT_NOBITS;
Result = toELFShdrIter(Sec)->sh_type == ELF::SHT_NOBITS;
return object_error::success;
}
template <class ELFT>
error_code ELFObjectFile<ELFT>::isSectionZeroInit(DataRefImpl Sec,
bool &Result) const {
Result = toELFShdrIter(Sec)->sh_type & ELF::SHT_NOBITS;
Result = toELFShdrIter(Sec)->sh_type == ELF::SHT_NOBITS;
return object_error::success;
}