mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 23:17:10 +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:
@@ -119,6 +119,11 @@ public:
|
|||||||
std::vector<uint64_t> MemberOffsets;
|
std::vector<uint64_t> MemberOffsets;
|
||||||
uint64_t StructSize;
|
uint64_t StructSize;
|
||||||
unsigned StructAlignment;
|
unsigned StructAlignment;
|
||||||
|
|
||||||
|
/// getElementContainingOffset - Given a valid offset into the structure,
|
||||||
|
/// return the structure index that contains it.
|
||||||
|
unsigned getElementContainingOffset(uint64_t Offset) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class TargetData; // Only TargetData can create this class
|
friend class TargetData; // Only TargetData can create this class
|
||||||
StructLayout(const StructType *ST, const TargetData &TD);
|
StructLayout(const StructType *ST, const TargetData &TD);
|
||||||
|
Reference in New Issue
Block a user