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

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 26 15:12:28 PDT 2003


Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.30 -> 1.31

---
Log message:

Remove two fields from TargetData which are target specific.



---
Diffs of the changes:

Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.30 llvm/lib/Target/TargetData.cpp:1.31
--- llvm/lib/Target/TargetData.cpp:1.30	Fri Apr 25 01:06:43 2003
+++ llvm/lib/Target/TargetData.cpp	Sat Apr 26 15:10:58 2003
@@ -82,8 +82,7 @@
 //===----------------------------------------------------------------------===//
 
 TargetData::TargetData(const std::string &TargetName,
-                       bool isLittleEndian, unsigned char SubWordSize,
-                       unsigned char IntRegSize, unsigned char PtrSize,
+                       bool isLittleEndian, unsigned char PtrSize,
                        unsigned char PtrAl, unsigned char DoubleAl,
                        unsigned char FloatAl, unsigned char LongAl, 
                        unsigned char IntAl, unsigned char ShortAl,
@@ -99,8 +98,6 @@
          "ERROR: Tool did not specify a target data to use!");
 
   LittleEndian     = isLittleEndian;
-  SubWordDataSize  = SubWordSize;
-  IntegerRegSize   = IntRegSize;
   PointerSize      = PtrSize;
   PointerAlignment = PtrAl;
   DoubleAlignment  = DoubleAl;
@@ -118,8 +115,6 @@
   AnnotationManager::registerAnnotationFactory(AID, TypeAnFactory, this);
 
   LittleEndian     = M->isLittleEndian();
-  SubWordDataSize  = 1;
-  IntegerRegSize   = 8;
   PointerSize      = M->has32BitPointers() ? 4 : 8;
   PointerAlignment = PointerSize;
   DoubleAlignment  = PointerSize;





More information about the llvm-commits mailing list