mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 05:31:06 +00:00
Fix this to be a proper copy ctor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e994b7492
commit
ed5b016f0e
@ -54,18 +54,18 @@ public:
|
||||
unsigned char ByteAl = 1, unsigned char BoolAl = 1);
|
||||
|
||||
// Copy constructor
|
||||
TargetData (const TargetData *TD) :
|
||||
TargetData (const TargetData &TD) :
|
||||
ImmutablePass(),
|
||||
LittleEndian(TD->isLittleEndian()),
|
||||
BoolAlignment(TD->getBoolAlignment()),
|
||||
ByteAlignment(TD->getByteAlignment()),
|
||||
ShortAlignment(TD->getShortAlignment()),
|
||||
IntAlignment(TD->getIntAlignment()),
|
||||
LongAlignment(TD->getLongAlignment()),
|
||||
FloatAlignment(TD->getFloatAlignment()),
|
||||
DoubleAlignment(TD->getDoubleAlignment()),
|
||||
PointerSize(TD->getPointerSize()),
|
||||
PointerAlignment(TD->getPointerAlignment()) {
|
||||
LittleEndian(TD.isLittleEndian()),
|
||||
BoolAlignment(TD.getBoolAlignment()),
|
||||
ByteAlignment(TD.getByteAlignment()),
|
||||
ShortAlignment(TD.getShortAlignment()),
|
||||
IntAlignment(TD.getIntAlignment()),
|
||||
LongAlignment(TD.getLongAlignment()),
|
||||
FloatAlignment(TD.getFloatAlignment()),
|
||||
DoubleAlignment(TD.getDoubleAlignment()),
|
||||
PointerSize(TD.getPointerSize()),
|
||||
PointerAlignment(TD.getPointerAlignment()) {
|
||||
}
|
||||
|
||||
TargetData(const std::string &ToolName, const Module *M);
|
||||
|
Loading…
Reference in New Issue
Block a user