diff options
author | John Hodge <tpg@mutabah.net> | 2018-12-29 15:00:52 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-12-29 15:00:52 +0800 |
commit | 28a48cfe2fde578219de5e15268348897c73b0d7 (patch) | |
tree | 78f4762893e6f624ab42df726f9bc33ca3b07d85 /src/hir/hir.hpp | |
parent | e8401bfcea28bef9151aea9a8bd9b1c2789b5f79 (diff) | |
download | mrust-28a48cfe2fde578219de5e15268348897c73b0d7.tar.gz |
HIR - Add new struct reprs (mostly stubbed)
- Also cleared out some dead code in target.cpp
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r-- | src/hir/hir.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp index 33200e96..fc4a19e8 100644 --- a/src/hir/hir.hpp +++ b/src/hir/hir.hpp @@ -267,6 +267,8 @@ public: C, Packed, Simd, + Aligned, // Alignment stored elsewhere + Transparent, }; TAGGED_UNION(Data, Unit, (Unit, struct {}), @@ -277,10 +279,12 @@ public: GenericParams m_params; Repr m_repr; Data m_data; + unsigned m_forced_alignment = 0; TraitMarkings m_markings; StructMarkings m_struct_markings; }; +extern ::std::ostream& operator<<(::std::ostream& os, const Struct::Repr& x); class Union { public: |