mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
On second thought, OpaqueType is not really a good first-class type.
llvm-svn: 16941
This commit is contained in:
parent
8d390f980a
commit
35c31cb4a2
@ -29,8 +29,6 @@
|
||||
// users of the unknown type, causing them to reference a new, more concrete
|
||||
// type. Opaque types are deleted when their use list dwindles to zero users.
|
||||
//
|
||||
// Opaque types are considered to be first-class types.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_TYPE_H
|
||||
@ -192,11 +190,10 @@ 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;
|
||||
ID == PointerTyID || ID == PackedTyID;
|
||||
}
|
||||
|
||||
/// isSized - Return true if it makes sense to take the size of this type. To
|
||||
|
Loading…
Reference in New Issue
Block a user