forked from qt-creator/qt-creator
Abi: Add endianness method
For now this uses the architecture to decide which endianness to use. That does not work too well, so a endianness field is needed for the master branch. Change-Id: I394a959c4182271ee9847de7c8da1788a027c3a2 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -739,6 +739,14 @@ QList<Abi> Abi::abisOfBinary(const Utils::FileName &path)
|
||||
return result;
|
||||
}
|
||||
|
||||
ProjectExplorer::Abi::Endianness Abi::endianness() const
|
||||
{
|
||||
if (m_architecture == X86Architecture)
|
||||
return LittleEndian;
|
||||
// All other architectures are bi-endian:/
|
||||
return UnknownEndian; // Todo: Add a field for endianness to the Abi struct!
|
||||
}
|
||||
|
||||
} // namespace ProjectExplorer
|
||||
|
||||
// Unit tests:
|
||||
|
||||
Reference in New Issue
Block a user