diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-18 14:01:07 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-18 14:01:07 +0000 |
commit | 7720cb3823d5b5868f9b88b0127277820edcb562 (patch) | |
tree | 55450b92b591297f60e9d20e4a9f8e1c4207913f /lib/Target | |
parent | f627dc37bf5b5bc9c2d96b8186feb3eb0b787618 (diff) | |
download | external_llvm-7720cb3823d5b5868f9b88b0127277820edcb562.zip external_llvm-7720cb3823d5b5868f9b88b0127277820edcb562.tar.gz external_llvm-7720cb3823d5b5868f9b88b0127277820edcb562.tar.bz2 |
isValueValidForType can be a static member function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index f5e0b22..b74af61 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -10252,8 +10252,8 @@ void X86TargetLowering::LowerAsmOperandForConstraint(SDValue Op, // 32-bit signed value if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { const ConstantInt *CI = C->getConstantIntValue(); - if (CI->isValueValidForType(Type::getInt32Ty(*DAG.getContext()), - C->getSExtValue())) { + if (ConstantInt::isValueValidForType(Type::getInt32Ty(*DAG.getContext()), + C->getSExtValue())) { // Widen to 64 bits here to get it sign extended. Result = DAG.getTargetConstant(C->getSExtValue(), MVT::i64); break; @@ -10267,8 +10267,8 @@ void X86TargetLowering::LowerAsmOperandForConstraint(SDValue Op, // 32-bit unsigned value if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) { const ConstantInt *CI = C->getConstantIntValue(); - if (CI->isValueValidForType(Type::getInt32Ty(*DAG.getContext()), - C->getZExtValue())) { + if (ConstantInt::isValueValidForType(Type::getInt32Ty(*DAG.getContext()), + C->getZExtValue())) { Result = DAG.getTargetConstant(C->getZExtValue(), Op.getValueType()); break; } |