Expand ParameterAttributes to 32 bits (in preparation
for adding alignment info, not there yet).  Clean up
interfaces to reference ParameterAttributes consistently.

llvm-svn: 47342
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index ec34abc..cbe11f0 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/lib/VMCore/Function.cpp
@@ -139,8 +139,8 @@
 }
 
 /// @brief Determine whether the function has the given attribute.
-bool Function::paramHasAttr(uint16_t i, unsigned attr) const {
-  return ParamAttrs && ParamAttrs->paramHasAttr(i, (ParameterAttributes)attr);
+bool Function::paramHasAttr(uint16_t i, ParameterAttributes attr) const {
+  return ParamAttrs && ParamAttrs->paramHasAttr(i, attr);
 }
 
 /// @brief Determine if the function cannot return.
@@ -365,7 +365,7 @@
 
 const ParamAttrsList *Intrinsic::getParamAttrs(ID id) {
   ParamAttrsVector Attrs;
-  uint16_t Attr = ParamAttr::None;
+  ParameterAttributes Attr = ParamAttr::None;
 
 #define GET_INTRINSIC_ATTRIBUTES
 #include "llvm/Intrinsics.gen"