Remove unused parameter from the LateParsedTemplatedFunction constructor.

llvm-svn: 146145
This commit is contained in:
Francois Pichet 2011-12-08 09:11:52 +00:00
parent 266e3dda17
commit 33786cb499
3 changed files with 3 additions and 4 deletions

View File

@ -1125,7 +1125,7 @@ private:
/// \brief Contains a late templated function.
/// Will be parsed at the end of the translation unit.
struct LateParsedTemplatedFunction {
explicit LateParsedTemplatedFunction(Parser* P, Decl *MD)
explicit LateParsedTemplatedFunction(Decl *MD)
: D(MD) {}
CachedTokens Toks;

View File

@ -113,8 +113,7 @@ Decl *Parser::ParseCXXInlineMethodDef(AccessSpecifier AS,
!Actions.IsInsideALocalClassWithinATemplateFunction())) {
if (FnD) {
LateParsedTemplatedFunction *LPT =
new LateParsedTemplatedFunction(this, FnD);
LateParsedTemplatedFunction *LPT = new LateParsedTemplatedFunction(FnD);
FunctionDecl *FD = 0;
if (FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(FnD))

View File

@ -885,7 +885,7 @@ Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,
D.getMutableDeclSpec().abort();
if (DP) {
LateParsedTemplatedFunction *LPT = new LateParsedTemplatedFunction(this, DP);
LateParsedTemplatedFunction *LPT = new LateParsedTemplatedFunction(DP);
FunctionDecl *FnD = 0;
if (FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(DP))