[llvm-commits] CVS: llvm/include/llvm/CodeGen/ValueTypes.h

Chris Lattner sabre at nondot.org
Fri Apr 27 22:39:10 PDT 2007



Changes in directory llvm/include/llvm/CodeGen:

ValueTypes.h updated: 1.33 -> 1.34
---
Log message:

add a way to make this less brittle


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

 ValueTypes.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/CodeGen/ValueTypes.h
diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.33 llvm/include/llvm/CodeGen/ValueTypes.h:1.34
--- llvm/include/llvm/CodeGen/ValueTypes.h:1.33	Mon Apr 23 17:50:40 2007
+++ llvm/include/llvm/CodeGen/ValueTypes.h	Sat Apr 28 00:38:52 2007
@@ -205,8 +205,9 @@
   
   /// MVT::getValueType - Return the value type corresponding to the specified
   /// type.  This returns all vectors as MVT::Vector and all pointers as
-  /// MVT::iPTR.
-  ValueType getValueType(const Type *Ty);
+  /// MVT::iPTR.  If HandleUnknown is true, unknown types are returned as Other,
+  /// otherwise they are invalid.
+  ValueType getValueType(const Type *Ty, bool HandleUnknown = false);
 }
 
 } // End llvm namespace






More information about the llvm-commits mailing list