Add some convenience methods for querying attributes, and

use them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands
2007-11-28 17:07:01 +00:00
parent 1e7b1bbd9c
commit afa3b6da11
15 changed files with 81 additions and 88 deletions

View File

@@ -5161,7 +5161,7 @@ yyreduce:
bool isVarArg = ParamTypeList.size() && ParamTypeList.back() == Type::VoidTy;
if (isVarArg) ParamTypeList.pop_back();
ParamAttrsList *PAL = 0;
const ParamAttrsList *PAL = 0;
if (!Attrs.empty())
PAL = ParamAttrsList::get(Attrs);
@@ -5664,7 +5664,7 @@ yyreduce:
GEN_ERROR("Invalid number of parameters detected");
}
ParamAttrsList *PAL = 0;
const ParamAttrsList *PAL = 0;
if (!Attrs.empty())
PAL = ParamAttrsList::get(Attrs);
@@ -6094,7 +6094,7 @@ yyreduce:
}
// Finish off the ParamAttrs and check them
ParamAttrsList *PAL = 0;
const ParamAttrsList *PAL = 0;
if (!Attrs.empty())
PAL = ParamAttrsList::get(Attrs);