summaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-05-13 15:18:06 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-05-13 15:18:06 +0000
commit3fa82837441d716a225427f7a924f36d21db3a32 (patch)
tree46504366629499f3e15ceeeb776376a7677ee694 /include/llvm/Type.h
parenteea6c95d5d9f202ccb4e90995dc8a4a4c439cec3 (diff)
downloadllvm-3fa82837441d716a225427f7a924f36d21db3a32.tar.gz
llvm-3fa82837441d716a225427f7a924f36d21db3a32.tar.bz2
llvm-3fa82837441d716a225427f7a924f36d21db3a32.tar.xz
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 0939d67265..3bda91d663 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;