1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Add new targetdata ctor to create a targetdata appropriate to the module

llvm-svn: 5902
This commit is contained in:
Chris Lattner 2003-04-24 19:08:45 +00:00
parent 9485cd4e9b
commit 55a4aea29b

View File

@ -38,7 +38,7 @@ class TargetData : public ImmutablePass {
static Annotation *TypeAnFactory(AnnotationID, const Annotable *, void *);
public:
TargetData(const std::string &TargetName = "SparcV9",
TargetData(const std::string &TargetName = "Default Target",
bool LittleEndian = false,
unsigned char SubWordDataSize = 1,
unsigned char IntRegSize = 8,
@ -47,6 +47,7 @@ public:
unsigned char FloatAl = 4, unsigned char LongAl = 8,
unsigned char IntAl = 4, unsigned char ShortAl = 2,
unsigned char ByteAl = 1);
TargetData(const std::string &ToolName, const Module *M);
~TargetData(); // Not virtual, do not subclass this class
/// Target endianness...