mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-15 22:32:35 +00:00
Add a new constructor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a94348fb9
commit
2bed9ecc4b
@ -52,6 +52,12 @@ protected: // Can only create subclasses...
|
||||
unsigned char DoubleAl = 8, unsigned char FloatAl = 4,
|
||||
unsigned char LongAl = 8, unsigned char IntAl = 4,
|
||||
unsigned char ShortAl = 2, unsigned char ByteAl = 1);
|
||||
|
||||
// This constructor is used for targets that support arbitrary TargetData
|
||||
// layouts, like the C backend. It initializes the TargetData to match that
|
||||
// of the specified module.
|
||||
TargetMachine(const std::string &name, IntrinsicLowering *IL,
|
||||
const Module &M);
|
||||
public:
|
||||
virtual ~TargetMachine();
|
||||
|
||||
|
@ -30,6 +30,11 @@ TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il,
|
||||
IntAl, ShortAl, ByteAl) {
|
||||
IL = il ? il : new DefaultIntrinsicLowering();
|
||||
}
|
||||
TargetMachine::TargetMachine(const std::string &name, IntrinsicLowering *il,
|
||||
const Module &M)
|
||||
: Name(name), DataLayout(name, &M) {
|
||||
IL = il ? il : new DefaultIntrinsicLowering();
|
||||
}
|
||||
|
||||
TargetMachine::~TargetMachine() {
|
||||
delete IL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user