diff options
| author | Andrew Lenharth <andrewl@lenharth.org> | 2006-12-08 18:06:16 +0000 |
|---|---|---|
| committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-12-08 18:06:16 +0000 |
| commit | 38ecbf18eb9c8ca7ae08dfed4dc6fb4e3e5deb1e (patch) | |
| tree | 25f918d862f8baff414df9382c194b5b5e072de1 /include/llvm/DerivedTypes.h | |
| parent | 8894255fc01cd8dcdccc700fdd69186d02131ffe (diff) | |
Packed Structures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DerivedTypes.h')
| -rw-r--r-- | include/llvm/DerivedTypes.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index 13344ba5a3..fafcea4903 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -163,13 +163,14 @@ protected: /// /// Private ctor - Only can be created by a static member... /// - StructType(const std::vector<const Type*> &Types); + StructType(const std::vector<const Type*> &Types, bool isPacked); public: /// StructType::get - This static method is the primary way to create a /// StructType. /// - static StructType *get(const std::vector<const Type*> &Params); + static StructType *get(const std::vector<const Type*> &Params, + bool isPacked=false); // Iterator access to the elements typedef std::vector<PATypeHandle>::const_iterator element_iterator; @@ -198,6 +199,8 @@ public: static inline bool classof(const Type *T) { return T->getTypeID() == StructTyID; } + + bool isPacked() const { return getSubclassData(); } }; |
