projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e2dc2
)
add a helper method
author
Chris Lattner
<sabre@nondot.org>
Sun, 13 Mar 2005 19:04:04 +0000
(19:04 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 13 Mar 2005 19:04:04 +0000
(19:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20578
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Target/TargetData.h
patch
|
blob
|
history
diff --git
a/include/llvm/Target/TargetData.h
b/include/llvm/Target/TargetData.h
index 3879b74c7e5e9fe7ea2ee2e7e87e6721e4771c0f..eb4baa999c2c5bb4d00742f5d0c84ec7eb6dc4a4 100644
(file)
--- a/
include/llvm/Target/TargetData.h
+++ b/
include/llvm/Target/TargetData.h
@@
-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);