add a specialization for the MVT form of getTypeAction, since it is
authorChris Lattner <sabre@nondot.org>
Wed, 25 Aug 2010 23:05:45 +0000 (23:05 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Aug 2010 23:05:45 +0000 (23:05 +0000)
trivial.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112105 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index 5e95e137a93624ccf39dfd20f1e5c60cdaeab705..29de994a21c981ca14b978d7eed997f4f914ad41 100644 (file)
@@ -261,7 +261,6 @@ public:
       return (LegalizeAction)ValueTypeActions[VT.SimpleTy];
     }
     
-    
     void setTypeAction(EVT VT, LegalizeAction Action) {
       unsigned I = VT.getSimpleVT().SimpleTy;
       ValueTypeActions[I] = Action;
@@ -279,7 +278,10 @@ public:
   LegalizeAction getTypeAction(EVT VT) const {
     return ValueTypeActions.getTypeAction(VT);
   }
-
+  LegalizeAction getTypeAction(MVT VT) const {
+    return ValueTypeActions.getTypeAction(VT);
+  }
+  
   /// getTypeToTransformTo - For types supported by the target, this is an
   /// identity function.  For types that must be promoted to larger types, this
   /// returns the larger type to promote to.  For integer types that are larger