mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add support for 'any' pointer size and endianness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8120 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb5d3a1526
commit
030574fd35
@ -112,8 +112,8 @@ TargetData::TargetData(const std::string &ToolName, const Module *M)
|
||||
: AID(AnnotationManager::getID("TargetData::" + ToolName)) {
|
||||
AnnotationManager::registerAnnotationFactory(AID, TypeAnFactory, this);
|
||||
|
||||
LittleEndian = M->isLittleEndian();
|
||||
PointerSize = M->has32BitPointers() ? 4 : 8;
|
||||
LittleEndian = M->getEndianness() != Module::BigEndian;
|
||||
PointerSize = M->getPointerSize() != Module::Pointer64 ? 4 : 8;
|
||||
PointerAlignment = PointerSize;
|
||||
DoubleAlignment = PointerSize;
|
||||
FloatAlignment = 4;
|
||||
|
Loading…
Reference in New Issue
Block a user