[llvm-commits] CVS: llvm/include/llvm/Type.h

Misha Brukman brukman at cs.uiuc.edu
Tue Oct 12 10:06:28 PDT 2004



Changes in directory llvm/include/llvm:

Type.h updated: 1.63 -> 1.64
---
Log message:

Opaque types are considered to be first-class.


---
Diffs of the changes:  (+3 -1)

Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.63 llvm/include/llvm/Type.h:1.64
--- llvm/include/llvm/Type.h:1.63	Thu Oct  7 14:19:12 2004
+++ llvm/include/llvm/Type.h	Tue Oct 12 12:06:17 2004
@@ -29,6 +29,8 @@
 // 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,7 +194,7 @@
   /// isFirstClassType - Return true if the value is holdable in a register.
   inline bool isFirstClassType() const {
     return (ID != VoidTyID && ID <= LastPrimitiveTyID) || 
-            ID == PointerTyID || ID == PackedTyID;
+            ID == PointerTyID || ID == PackedTyID || ID == OpaqueTyID;
   }
 
   /// isSized - Return true if it makes sense to take the size of this type.  To






More information about the llvm-commits mailing list