Add a new constructor to TargetData that builds a TargetData from its

string representation.

This is part of PR 761.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson
2006-05-12 05:49:47 +00:00
parent 21a57dc751
commit 8f60c56a06
2 changed files with 72 additions and 0 deletions

View File

@@ -53,6 +53,13 @@ public:
unsigned char IntAl = 4, unsigned char ShortAl = 2,
unsigned char ByteAl = 1, unsigned char BoolAl = 1);
/// Constructs a TargetData from a string of the following format:
/// "E-p:64:64-d:64:64-f:32:32-l:64:64-i:32:32-s:16:16-b:8:8-B:8:8"
/// The above string is considered the default, and any values not specified
/// in the string will be assumed to be as above.
TargetData(const std::string &TargetName,
const std::string &TargetDescription);
// Copy constructor
TargetData (const TargetData &TD) :
ImmutablePass(),