diff options
author | Owen Anderson <resistor@mac.com> | 2009-08-20 23:51:44 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-08-20 23:51:44 +0000 |
commit | 2ea20154cef8ecfb8803bcfe5223e1c199d61858 (patch) | |
tree | 73056dd3d808a5c02d33e5f5aac7f721737bb218 /include | |
parent | c78b33bdc1953914b0bbbaa1a0475cc231b43991 (diff) | |
download | llvm-2ea20154cef8ecfb8803bcfe5223e1c199d61858.tar.gz llvm-2ea20154cef8ecfb8803bcfe5223e1c199d61858.tar.bz2 llvm-2ea20154cef8ecfb8803bcfe5223e1c199d61858.tar.xz |
Re-revert r79555. Apparently it's not just buildbot weirdness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetData.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index b0ea291249..23775be70f 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -91,9 +91,6 @@ private: */ static const TargetAlignElem InvalidAlignmentElem; - /// Opaque pointer for the StructType -> StructLayout map - void* LayoutMap; - //! Set/initialize target alignments void setAlignment(AlignTypeEnum align_type, unsigned char abi_align, unsigned char pref_align, uint32_t bit_width); @@ -110,9 +107,6 @@ private: return (&align != &InvalidAlignmentElem); } - // DO NOT IMPLEMENT - void operator=(const TargetData&); - public: /// Default ctor. /// @@ -124,11 +118,22 @@ public: } /// Constructs a TargetData from a specification string. See init(). - explicit TargetData(const std::string &TargetDescription); + explicit TargetData(const std::string &TargetDescription) + : ImmutablePass(&ID) { + init(TargetDescription); + } /// Initialize target data from properties stored in the module. explicit TargetData(const Module *M); - TargetData(const TargetData &TD); + + TargetData(const TargetData &TD) : + ImmutablePass(&ID), + LittleEndian(TD.isLittleEndian()), + PointerMemSize(TD.PointerMemSize), + PointerABIAlign(TD.PointerABIAlign), + PointerPrefAlign(TD.PointerPrefAlign), + Alignments(TD.Alignments) + { } ~TargetData(); // Not virtual, do not subclass this class |