diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-06-20 01:06:08 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-06-20 01:06:08 +0000 |
commit | 056e2c30050a94141150ba561268d90b4d18e378 (patch) | |
tree | 0f8f3c3f2a12bd69c5e2d93ac79102c94bf0c3ad /lib/Parse/Parser.cpp | |
parent | d5e26b8933a377893c8043ff6a23aaf6b601d18f (diff) |
Unbreak GCC build: GCC doesn't like clang::Parser::CommentHandler and class clang::CommentHandler to have same name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 10fb8eb8e9..c27660f2f8 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -92,8 +92,8 @@ Parser::Parser(Preprocessor &pp, Sema &actions, bool SkipFunctionBodies) PP.AddPragmaHandler("OPENCL", FPContractHandler.get()); } - CommentHandler.reset(new ActionCommentHandler(actions)); - PP.addCommentHandler(CommentHandler.get()); + CommentSemaHandler.reset(new ActionCommentHandler(actions)); + PP.addCommentHandler(CommentSemaHandler.get()); PP.setCodeCompletionHandler(*this); } @@ -440,7 +440,7 @@ Parser::~Parser() { PP.RemovePragmaHandler("STDC", FPContractHandler.get()); FPContractHandler.reset(); - PP.removeCommentHandler(CommentHandler.get()); + PP.removeCommentHandler(CommentSemaHandler.get()); PP.clearCodeCompletionHandler(); |