mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 06:38:41 +00:00
Add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
195e9176af
commit
79bda7fbe2
@ -53,6 +53,11 @@ namespace llvm {
|
|||||||
return CurTy;
|
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
|
// This is a non-standard operator->. It allows you to call methods on the
|
||||||
// current type directly.
|
// current type directly.
|
||||||
const Type *operator->() const { return operator*(); }
|
const Type *operator->() const { return operator*(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user