[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h
Chris Lattner
lattner at cs.uiuc.edu
Thu May 4 14:17:47 PDT 2006
Changes in directory llvm/include/llvm/Target:
TargetData.h updated: 1.34 -> 1.35
---
Log message:
Fix this to be a proper copy ctor
---
Diffs of the changes: (+11 -11)
TargetData.h | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.34 llvm/include/llvm/Target/TargetData.h:1.35
--- llvm/include/llvm/Target/TargetData.h:1.34 Tue May 2 20:29:56 2006
+++ llvm/include/llvm/Target/TargetData.h Thu May 4 16:17:35 2006
@@ -54,18 +54,18 @@
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);
More information about the llvm-commits
mailing list