diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-29 21:48:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 21:48:17 +0000 |
commit | c56406c236478f718a2257c2b660561ebc855f16 (patch) | |
tree | 5a24a2b7f09c621d2b3c3b5d3c6c2795dfe677e4 /lib/Target/TargetData.cpp | |
parent | 62eaf7ef60f607112f54580df6d0e8ced4ef9e62 (diff) |
* Privatize the TargetName
* Move optSizeForSubWordData to TargetData
* Remove unused fields
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 1207a6eed1..20e7522e50 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -81,7 +81,7 @@ Annotation *TargetData::TypeAnFactory(AnnotationID AID, const Annotable *T, //===----------------------------------------------------------------------===// 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 @@ TargetData::TargetData(const std::string &TargetName, AnnotationManager::registerAnnotationFactory(AID, TypeAnFactory, this); LittleEndian = isLittleEndian; + SubWordDataSize = SubWordSize; IntegerRegSize = IntRegSize; PointerSize = PtrSize; PointerAlignment = PtrAl; |