[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Apr 24 14:09:02 PDT 2003
Changes in directory llvm/include/llvm/Target:
TargetData.h updated: 1.13 -> 1.14
---
Log message:
Add new targetdata ctor to create a targetdata appropriate to the module
---
Diffs of the changes:
Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.13 llvm/include/llvm/Target/TargetData.h:1.14
--- llvm/include/llvm/Target/TargetData.h:1.13 Tue Jan 14 15:29:37 2003
+++ llvm/include/llvm/Target/TargetData.h Thu Apr 24 14:08:45 2003
@@ -38,7 +38,7 @@
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 @@
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...
More information about the llvm-commits
mailing list