diff options
author | Chris Lattner <sabre@nondot.org> | 2007-03-31 04:05:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-03-31 04:05:24 +0000 |
commit | d2f340b746e54fca27b654fd6740973fdf6b85f1 (patch) | |
tree | 3261af9b4afe467ba541c4e4a4c8318e8bdd73e6 /include/llvm | |
parent | 2df6dc579ca7c85a20d2d221f4df32fbb26fc97a (diff) | |
download | external_llvm-d2f340b746e54fca27b654fd6740973fdf6b85f1.zip external_llvm-d2f340b746e54fca27b654fd6740973fdf6b85f1.tar.gz external_llvm-d2f340b746e54fca27b654fd6740973fdf6b85f1.tar.bz2 |
switch TL::getValueType to use MVT::getValueType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 5cdad25..139580a 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -340,7 +340,10 @@ public: /// 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 |