Create enums for the different attributes.
[oota-llvm.git] / lib / Target / NVPTX / NVPTXAsmPrinter.cpp
index d3342f609ad606138e19df26091962d2ae5c7eeb..d3dfb35e2611f587376761114ccd280339b48621 100644 (file)
@@ -1456,7 +1456,8 @@ void NVPTXAsmPrinter::emitFunctionParamList(const Function *F,
       continue;
     }
 
-    if (PAL.getParamAttributes(paramIndex+1).hasByValAttr() == false) {
+    if (PAL.getParamAttributes(paramIndex+1).
+          hasAttribute(Attributes::ByVal) == false) {
       // Just a scalar
       const PointerType *PTy = dyn_cast<PointerType>(Ty);
       if (isKernelFunc) {