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 | e53b7d1a11d180ed7b33190a837d8898ab2a0b71 (patch) | |
| tree | e370204b933a22309c8343cff0e60e9d1a563f95 /llvm/include | |
| parent | c586166fe3499fbe0965aa1d67e81289f38ea175 (diff) | |
| download | bcm5719-llvm-e53b7d1a11d180ed7b33190a837d8898ab2a0b71.tar.gz bcm5719-llvm-e53b7d1a11d180ed7b33190a837d8898ab2a0b71.zip | |
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.
llvm-svn: 131294
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Type.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Type.h b/llvm/include/llvm/Type.h index 0939d67265b..3bda91d6638 100644 --- a/llvm/include/llvm/Type.h +++ b/llvm/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; |

