From: Erik Verbruggen Date: Wed, 26 Oct 2016 11:46:10 +0000 (+0000) Subject: [PP] Remove another unused parameter X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4970df6f2dd388be853b81443bcf6c7e62c7b253;p=clang [PP] Remove another unused parameter Differential Revision: http://reviews.llvm.org/D25981 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285188 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 06212bfac4..ccef9eebc3 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -1937,7 +1937,7 @@ private: public: void HandlePragmaOnce(Token &OnceTok); void HandlePragmaMark(); - void HandlePragmaPoison(Token &PoisonTok); + void HandlePragmaPoison(); void HandlePragmaSystemHeader(Token &SysHeaderTok); void HandlePragmaDependency(Token &DependencyTok); void HandlePragmaPushMacro(Token &Tok); diff --git a/lib/Lex/Pragma.cpp b/lib/Lex/Pragma.cpp index 459133d530..206722347e 100644 --- a/lib/Lex/Pragma.cpp +++ b/lib/Lex/Pragma.cpp @@ -393,7 +393,7 @@ void Preprocessor::HandlePragmaMark() { /// HandlePragmaPoison - Handle \#pragma GCC poison. PoisonTok is the 'poison'. /// -void Preprocessor::HandlePragmaPoison(Token &PoisonTok) { +void Preprocessor::HandlePragmaPoison() { Token Tok; while (true) { @@ -853,7 +853,7 @@ struct PragmaPoisonHandler : public PragmaHandler { void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PoisonTok) override { - PP.HandlePragmaPoison(PoisonTok); + PP.HandlePragmaPoison(); } };