Add comment

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-10-12 17:08:44 +00:00
parent 207f2d4056
commit e004fd005d

View File

@ -192,6 +192,8 @@ public:
inline bool isDerivedType() const { return ID >= FirstDerivedTyID; }
/// isFirstClassType - Return true if the value is holdable in a register.
/// Note that we consider opaque types to be first class, as they may be
/// resolved to a first class type later.
inline bool isFirstClassType() const {
return (ID != VoidTyID && ID <= LastPrimitiveTyID) ||
ID == PointerTyID || ID == PackedTyID || ID == OpaqueTyID;