Added parameter IntRegSize for standard general-purpose register size.

llvm-svn: 2652
This commit is contained in:
Vikram S. Adve 2002-05-19 15:44:07 +00:00
parent c479fd5cd9
commit 18d5a88024
1 changed files with 3 additions and 1 deletions

View File

@ -38,11 +38,13 @@ public:
protected:
TargetMachine(const std::string &targetname, // Can only create subclasses...
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)
: TargetName(targetname), DataLayout(targetname, PtrSize, PtrAl,
: TargetName(targetname), DataLayout(targetname, IntRegSize,
PtrSize, PtrAl,
DoubleAl, FloatAl, LongAl, IntAl,
ShortAl, ByteAl) { }
public: