diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-26 20:11:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-26 20:11:09 +0000 |
commit | 10daaa141661d96843f3d8ece0e5a4c2da4b6e87 (patch) | |
tree | 0791b17726d66043d6c4e81e5f81dde1451aeac3 /include/llvm/Target | |
parent | 37ec8114097b05974a83083a062041675b974c08 (diff) | |
download | llvm-10daaa141661d96843f3d8ece0e5a4c2da4b6e87.tar.gz llvm-10daaa141661d96843f3d8ece0e5a4c2da4b6e87.tar.bz2 llvm-10daaa141661d96843f3d8ece0e5a4c2da4b6e87.tar.xz |
Remove two fields from TargetData which are target specific.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetData.h | 6 | ||||
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 66176a5ff1..a9bf2182da 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -24,7 +24,6 @@ class StructLayout; class TargetData : public ImmutablePass { bool LittleEndian; // Defaults to false - unsigned char SubWordDataSize; // Defaults to 1 byte (no rounding up) unsigned char ByteAlignment; // Defaults to 1 bytes unsigned char ShortAlignment; // Defaults to 2 bytes unsigned char IntAlignment; // Defaults to 4 bytes @@ -32,7 +31,6 @@ class TargetData : public ImmutablePass { unsigned char FloatAlignment; // Defaults to 4 bytes unsigned char DoubleAlignment; // Defaults to 8 bytes unsigned char PointerSize; // Defaults to 8 bytes - unsigned char IntegerRegSize; // Defaults to PointerSize = 8 bytes unsigned char PointerAlignment; // Defaults to 8 bytes AnnotationID AID; // AID for structure layout annotation @@ -40,8 +38,6 @@ class TargetData : public ImmutablePass { public: TargetData(const std::string &TargetName = "", bool LittleEndian = false, - unsigned char SubWordDataSize = 1, - unsigned char IntRegSize = 8, unsigned char PtrSize = 8, unsigned char PtrAl = 8, unsigned char DoubleAl = 8, unsigned char FloatAl = 4, unsigned char LongAl = 8, @@ -55,7 +51,6 @@ public: bool isBigEndian() const { return !LittleEndian; } /// Target alignment constraints - unsigned char getSubWordDataSize() const { return SubWordDataSize; } unsigned char getByteAlignment() const { return ByteAlignment; } unsigned char getShortAlignment() const { return ShortAlignment; } unsigned char getIntAlignment() const { return IntAlignment; } @@ -64,7 +59,6 @@ public: unsigned char getDoubleAlignment() const { return DoubleAlignment; } unsigned char getPointerAlignment() const { return PointerAlignment; } unsigned char getPointerSize() const { return PointerSize; } - unsigned char getIntegerRegSize() const { return IntegerRegSize; } AnnotationID getStructLayoutAID() const { return AID; } // getTypeSize - Return the number of bytes neccesary to hold the specified diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 5c76ff28f8..041a724b0c 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -35,12 +35,11 @@ class TargetMachine : public NonCopyableV { protected: TargetMachine(const std::string &name, // Can only create subclasses... bool LittleEndian = false, - unsigned char SubWordSize = 1, unsigned char IntRegSize = 8, unsigned char PtrSize = 8, unsigned char PtrAl = 8, unsigned char DoubleAl = 8, unsigned char FloatAl = 4, unsigned char LongAl = 8, unsigned char IntAl = 4, unsigned char ShortAl = 2, unsigned char ByteAl = 1) - : Name(name), DataLayout(name, LittleEndian, SubWordSize, IntRegSize, + : Name(name), DataLayout(name, LittleEndian, PtrSize, PtrAl, DoubleAl, FloatAl, LongAl, IntAl, ShortAl, ByteAl) {} public: |