mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
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:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user