aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-09 21:38:14 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-09 21:38:14 +0000
commit8ccd6ca199561b3bea908d0da6a23259acb29b51 (patch)
tree236293b5bca7a3ff94e51952bdfcf50a38eabd75 /llvm/lib/Target/ARM/ARMFastISel.cpp
parent880ee17fb836697949614c4ca54067dcfccba12b (diff)
downloadllvm-8ccd6ca199561b3bea908d0da6a23259acb29b51.zip
llvm-8ccd6ca199561b3bea908d0da6a23259acb29b51.tar.gz
llvm-8ccd6ca199561b3bea908d0da6a23259acb29b51.tar.bz2
Use the attribute enums to query if a parameter has an attribute.
llvm-svn: 165550
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 405c2f4..92248f5 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -2320,16 +2320,16 @@ bool ARMFastISel::SelectCall(const Instruction *I,
ISD::ArgFlagsTy Flags;
unsigned AttrInd = i - CS.arg_begin() + 1;
- if (CS.paramHasSExtAttr(AttrInd))
+ if (CS.paramHasAttr(AttrInd, Attributes::SExt))
Flags.setSExt();
- if (CS.paramHasZExtAttr(AttrInd))
+ if (CS.paramHasAttr(AttrInd, Attributes::ZExt))
Flags.setZExt();
// FIXME: Only handle *easy* calls for now.
- if (CS.paramHasInRegAttr(AttrInd) ||
- CS.paramHasStructRetAttr(AttrInd) ||
- CS.paramHasNestAttr(AttrInd) ||
- CS.paramHasByValAttr(AttrInd))
+ if (CS.paramHasAttr(AttrInd, Attributes::InReg) ||
+ CS.paramHasAttr(AttrInd, Attributes::StructRet) ||
+ CS.paramHasAttr(AttrInd, Attributes::Nest) ||
+ CS.paramHasAttr(AttrInd, Attributes::ByVal))
return false;
Type *ArgTy = (*i)->getType();