]> granicus.if.org Git - clang/commitdiff
Remove unused parameter from the LateParsedTemplatedFunction constructor.
authorFrancois Pichet <pichet2000@gmail.com>
Thu, 8 Dec 2011 09:11:52 +0000 (09:11 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Thu, 8 Dec 2011 09:11:52 +0000 (09:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146145 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Parser.h
lib/Parse/ParseCXXInlineMethods.cpp
lib/Parse/Parser.cpp

index 8e283d1c02beb91221408dcd9f6d83ee914568f4..0ebf9c3a7027a217f85e262957c98db72bd83a77 100644 (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;
index 66f26f86f4b72c020e81244b70795c8235616c97..d5b240ab79bd549b3ff1f0c535380f888992383b 100644 (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))
index 112d7a2d12c3861613ef30728560f4434771a45d..95ce065ff7621d1580184755eb39ce23f2805160 100644 (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))