diff options
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index c52419c..8780db7 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -243,6 +243,10 @@ public: /// bool isStructTy() const { return ID == StructTyID; } + /// isUnionTy - True if this is an instance of UnionType. + /// + bool isUnionTy() const { return ID == UnionTyID; } + /// isArrayTy - True if this is an instance of ArrayType. /// bool isArrayTy() const { return ID == ArrayTyID; } |