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

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 29 15:49:00 PST 2002


Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.25 -> 1.26

---
Log message:

* Privatize the TargetName
* Move optSizeForSubWordData to TargetData
* Remove unused fields


---
Diffs of the changes:

Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.25 llvm/lib/Target/TargetData.cpp:1.26
--- llvm/lib/Target/TargetData.cpp:1.25	Mon Oct 14 17:41:13 2002
+++ llvm/lib/Target/TargetData.cpp	Tue Oct 29 15:48:16 2002
@@ -81,7 +81,7 @@
 //===----------------------------------------------------------------------===//
 
 TargetData::TargetData(const std::string &TargetName,
-                       bool isLittleEndian,
+                       bool isLittleEndian, unsigned char SubWordSize,
                        unsigned char IntRegSize, unsigned char PtrSize,
                        unsigned char PtrAl, unsigned char DoubleAl,
                        unsigned char FloatAl, unsigned char LongAl, 
@@ -91,6 +91,7 @@
   AnnotationManager::registerAnnotationFactory(AID, TypeAnFactory, this);
 
   LittleEndian     = isLittleEndian;
+  SubWordDataSize  = SubWordSize;
   IntegerRegSize   = IntRegSize;
   PointerSize      = PtrSize;
   PointerAlignment = PtrAl;





More information about the llvm-commits mailing list