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:
Tobias Hunger
2013-06-21 11:07:40 +02:00
parent 3de1592090
commit 490524b7cd
2 changed files with 15 additions and 0 deletions

View File

@@ -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: