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:
Chris Lattner 2006-05-04 21:17:35 +00:00
parent 6e994b7492
commit ed5b016f0e

View File

@ -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);