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:
195e917
)
Add a method
author
Chris Lattner
<sabre@nondot.org>
Thu, 13 Jan 2005 23:26:28 +0000
(23:26 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 13 Jan 2005 23:26:28 +0000
(23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19540
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/GetElementPtrTypeIterator.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/GetElementPtrTypeIterator.h
b/include/llvm/Support/GetElementPtrTypeIterator.h
index d9b38f27400e17ab14fb6e515da899b0d26dc7bc..8f6c224a266408d7c4079959f41661bf9e3a5076 100644
(file)
--- a/
include/llvm/Support/GetElementPtrTypeIterator.h
+++ b/
include/llvm/Support/GetElementPtrTypeIterator.h
@@
-53,6
+53,11
@@
namespace llvm {
return CurTy;
}
+ const Type *getIndexedType() const {
+ const CompositeType *CT = cast<CompositeType>(CurTy);
+ return CT->getTypeAtIndex(getOperand());
+ }
+
// This is a non-standard operator->. It allows you to call methods on the
// current type directly.
const Type *operator->() const { return operator*(); }