BUG: When byte order is not known at compile time make sure NeedSwap in cmELF is still initialized.

This commit is contained in:
Brad King 2008-05-13 10:34:24 -04:00
parent d707719d57
commit 9eee4149ec
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ public:
this->NeedSwap = (this->ByteOrder == ByteOrderMSB);
#elif cmsys_CPU_ENDIAN_ID == cmsys_CPU_ENDIAN_ID_BIG
this->NeedSwap = (this->ByteOrder == ByteOrderLSB);
#else
this->NeedSwap = false; // Final decision is at runtime anyway.
#endif
// We have not yet loaded the section info.