mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
add a helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84e2dc2d5d
commit
977df76722
@ -119,6 +119,11 @@ public:
|
||||
std::vector<uint64_t> MemberOffsets;
|
||||
uint64_t StructSize;
|
||||
unsigned StructAlignment;
|
||||
|
||||
/// getElementContainingOffset - Given a valid offset into the structure,
|
||||
/// return the structure index that contains it.
|
||||
unsigned getElementContainingOffset(uint64_t Offset) const;
|
||||
|
||||
private:
|
||||
friend class TargetData; // Only TargetData can create this class
|
||||
StructLayout(const StructType *ST, const TargetData &TD);
|
||||
|
Loading…
Reference in New Issue
Block a user