diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-13 15:18:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-13 15:18:06 +0000 |
commit | 3fa82837441d716a225427f7a924f36d21db3a32 (patch) | |
tree | 46504366629499f3e15ceeeb776376a7677ee694 /include/llvm/Type.h | |
parent | eea6c95d5d9f202ccb4e90995dc8a4a4c439cec3 (diff) | |
download | external_llvm-3fa82837441d716a225427f7a924f36d21db3a32.zip external_llvm-3fa82837441d716a225427f7a924f36d21db3a32.tar.gz external_llvm-3fa82837441d716a225427f7a924f36d21db3a32.tar.bz2 |
Make codegen able to handle values of empty types. This is one way
to fix PR9900. I will keep it open until sable is able to comment on it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 0939d67..3bda91d 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -273,6 +273,9 @@ public: /// @brief Determine if this type could be losslessly bitcast to Ty bool canLosslesslyBitCastTo(const Type *Ty) const; + /// isEmptyTy - Return true if this type is empty, that is, it has no + /// elements or all its elements are empty. + bool isEmptyTy() const; /// Here are some useful little methods to query what type derived types are /// Note that all other types can just compare to see if this == Type::xxxTy; |