diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-10-12 20:35:04 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-10-12 20:35:04 +0000 |
commit | 481d56c5deac8d0bcbd7136420b9fac47da28805 (patch) | |
tree | 6f07965e51535091576a71367ddd4e21aeb07252 /include | |
parent | fc6723f659c79eb877f4b32b10905af8d4a3d086 (diff) | |
download | external_llvm-481d56c5deac8d0bcbd7136420b9fac47da28805.zip external_llvm-481d56c5deac8d0bcbd7136420b9fac47da28805.tar.gz external_llvm-481d56c5deac8d0bcbd7136420b9fac47da28805.tar.bz2 |
On second thought, OpaqueType is not really a good first-class type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Type.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index fd5dbdd..9602fd5 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -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 |