[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 14 17:42:02 PDT 2002


Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.24 -> 1.25

---
Log message:

  - Add an endianness field to the TargetData datastructure



---
Diffs of the changes:

Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.24 llvm/lib/Target/TargetData.cpp:1.25
--- llvm/lib/Target/TargetData.cpp:1.24	Sun Oct 13 16:47:44 2002
+++ llvm/lib/Target/TargetData.cpp	Mon Oct 14 17:41:13 2002
@@ -81,14 +81,16 @@
 //===----------------------------------------------------------------------===//
 
 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;





More information about the llvm-commits mailing list