Added push and pop instructions.
[oota-llvm.git] / lib / Target / TargetData.cpp
index fae5e103e6697d903f247e40a79c112fa3d9851c..20e7522e5036f8fef6c6798ae06108d82d6e7a99 100644 (file)
@@ -81,14 +81,17 @@ 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 SubWordSize,
+                       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;
+  SubWordDataSize  = SubWordSize;
   IntegerRegSize   = IntRegSize;
   PointerSize      = PtrSize;
   PointerAlignment = PtrAl;