aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-24 19:08:45 +0000
committerChris Lattner <sabre@nondot.org>2003-04-24 19:08:45 +0000
commit4bc8e640b8338566f59bea3532e818eb9e2685b2 (patch)
tree7ebcdc952158582bcc2b03b37b86f658608f9e42
parentbaf64b1e1c1537502f84bdd74893cb72fce6a0bb (diff)
Add new targetdata ctor to create a targetdata appropriate to the module
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5902 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetData.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index bd60ff3652..aac346a34d 100644
--- a/include/llvm/Target/TargetData.h
+++ b/include/llvm/Target/TargetData.h
@@ -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...