aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-10 20:18:46 +0000
committerOwen Anderson <resistor@mac.com>2009-08-10 20:18:46 +0000
commita4509893aacf06a14f470c0981aa90b7248423a8 (patch)
treecfb50700dbfb66a3834b50a532858dae940624c7 /include
parent8697cd2f2808cd34f31027b24e60233db1668ec0 (diff)
downloadexternal_llvm-a4509893aacf06a14f470c0981aa90b7248423a8.zip
external_llvm-a4509893aacf06a14f470c0981aa90b7248423a8.tar.gz
external_llvm-a4509893aacf06a14f470c0981aa90b7248423a8.tar.bz2
Continue the SimpleValueType-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 9a61c63..754dc29 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -944,11 +944,9 @@ protected:
/// setOperationAction - Indicate that the specified operation does not work
/// with the specified type and indicate what to do about it.
- void setOperationAction(unsigned Op, MVT VT,
+ void setOperationAction(unsigned Op, MVT::SimpleValueType VT,
LegalizeAction Action) {
- assert((unsigned)VT.getSimpleVT() < sizeof(OpActions[0][0])*8 &&
- Op < array_lengthof(OpActions[0]) && "Table isn't big enough!");
- unsigned I = (unsigned) VT.getSimpleVT();
+ unsigned I = (unsigned)VT;
unsigned J = I & 31;
I = I >> 5;
OpActions[I][Op] &= ~(uint64_t(3UL) << (J*2));