mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
- Add an endianness field to the TargetData datastructure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4174 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -81,14 +81,16 @@ Annotation *TargetData::TypeAnFactory(AnnotationID AID, const Annotable *T,
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
TargetData::TargetData(const std::string &TargetName,
|
||||
unsigned char IntRegSize, unsigned char PtrSize,
|
||||
unsigned char PtrAl, unsigned char DoubleAl,
|
||||
unsigned char FloatAl, unsigned char LongAl,
|
||||
unsigned char IntAl, unsigned char ShortAl,
|
||||
unsigned char ByteAl)
|
||||
bool isLittleEndian,
|
||||
unsigned char IntRegSize, unsigned char PtrSize,
|
||||
unsigned char PtrAl, unsigned char DoubleAl,
|
||||
unsigned char FloatAl, unsigned char LongAl,
|
||||
unsigned char IntAl, unsigned char ShortAl,
|
||||
unsigned char ByteAl)
|
||||
: AID(AnnotationManager::getID("TargetData::" + TargetName)) {
|
||||
AnnotationManager::registerAnnotationFactory(AID, TypeAnFactory, this);
|
||||
|
||||
LittleEndian = isLittleEndian;
|
||||
IntegerRegSize = IntRegSize;
|
||||
PointerSize = PtrSize;
|
||||
PointerAlignment = PtrAl;
|
||||
|
||||
Reference in New Issue
Block a user