mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
Add a method
llvm-svn: 19540
This commit is contained in:
parent
b3462cf8d5
commit
eff86ebbc3
@ -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*(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user