mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Use the predicate methods off of AttributeSet instead of Attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1521,8 +1521,7 @@ void NVPTXAsmPrinter::emitFunctionParamList(const Function *F,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (PAL.getParamAttributes(paramIndex+1).
|
||||
hasAttribute(Attribute::ByVal) == false) {
|
||||
if (PAL.hasAttribute(paramIndex+1, Attribute::ByVal) == false) {
|
||||
// Just a scalar
|
||||
const PointerType *PTy = dyn_cast<PointerType>(Ty);
|
||||
if (isKernelFunc) {
|
||||
|
@@ -1022,7 +1022,7 @@ NVPTXTargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
// to newly created nodes. The SDNOdes for params have to
|
||||
// appear in the same order as their order of appearance
|
||||
// in the original function. "idx+1" holds that order.
|
||||
if (PAL.getParamAttributes(i+1).hasAttribute(Attribute::ByVal) == false) {
|
||||
if (PAL.hasAttribute(i+1, Attribute::ByVal) == false) {
|
||||
// A plain scalar.
|
||||
if (isABI || isKernel) {
|
||||
// If ABI, load from the param symbol
|
||||
|
Reference in New Issue
Block a user