mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Whoops, 32 bit targets have _4_ byte pointers, not _32_ byte pointers!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc19466912
commit
dd7253cc9f
@ -104,6 +104,8 @@ TargetData::TargetData(const std::string &TargetName,
|
|||||||
PointerSize = PtrSize;
|
PointerSize = PtrSize;
|
||||||
PointerAlignment = PtrAl;
|
PointerAlignment = PtrAl;
|
||||||
DoubleAlignment = DoubleAl;
|
DoubleAlignment = DoubleAl;
|
||||||
|
assert(DoubleAlignment == PtrAl &&
|
||||||
|
"Double alignment and pointer alignment agree for now!");
|
||||||
FloatAlignment = FloatAl;
|
FloatAlignment = FloatAl;
|
||||||
LongAlignment = LongAl;
|
LongAlignment = LongAl;
|
||||||
IntAlignment = IntAl;
|
IntAlignment = IntAl;
|
||||||
@ -118,9 +120,9 @@ TargetData::TargetData(const std::string &ToolName, const Module *M)
|
|||||||
LittleEndian = M->isLittleEndian();
|
LittleEndian = M->isLittleEndian();
|
||||||
SubWordDataSize = 1;
|
SubWordDataSize = 1;
|
||||||
IntegerRegSize = 8;
|
IntegerRegSize = 8;
|
||||||
PointerSize = M->has32BitPointers() ? 32 : 64;
|
PointerSize = M->has32BitPointers() ? 4 : 8;
|
||||||
PointerAlignment = PointerSize;
|
PointerAlignment = PointerSize;
|
||||||
DoubleAlignment = 8;
|
DoubleAlignment = PointerSize;
|
||||||
FloatAlignment = 4;
|
FloatAlignment = 4;
|
||||||
LongAlignment = 8;
|
LongAlignment = 8;
|
||||||
IntAlignment = 4;
|
IntAlignment = 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user