[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h

Chris Lattner sabre at nondot.org
Fri Mar 30 21:05:45 PDT 2007



Changes in directory llvm/include/llvm/Target:

TargetLowering.h updated: 1.118 -> 1.119
---
Log message:

switch TL::getValueType to use MVT::getValueType.


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

 TargetLowering.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.118 llvm/include/llvm/Target/TargetLowering.h:1.119
--- llvm/include/llvm/Target/TargetLowering.h:1.118	Fri Mar 30 18:14:50 2007
+++ llvm/include/llvm/Target/TargetLowering.h	Fri Mar 30 23:05:24 2007
@@ -340,7 +340,10 @@
 
   /// getValueType - Return the MVT::ValueType corresponding to this LLVM type.
   /// This is fixed by the LLVM operations except for the pointer size.
-  MVT::ValueType getValueType(const Type *Ty) const;
+  MVT::ValueType getValueType(const Type *Ty) const {
+    MVT::ValueType VT = MVT::getValueType(Ty);
+    return VT == MVT::iPTR ? PointerTy : VT;
+  }
 
   /// getNumElements - Return the number of registers that this ValueType will
   /// eventually require.  This is one for any types promoted to live in larger






More information about the llvm-commits mailing list