diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-03 19:48:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-03 19:48:16 +0000 |
commit | 663b48f13b2d525760e0cd82d2695a2f3c9fb69f (patch) | |
tree | bace2be1a8ab3d9c2ebb59e039cc90adbc5740e6 /clang/lib/Lex/PPDirectives.cpp | |
parent | 3c9707bd90a585239db5a1f118e62a1218b532f8 (diff) | |
download | bcm5719-llvm-663b48f13b2d525760e0cd82d2695a2f3c9fb69f.tar.gz bcm5719-llvm-663b48f13b2d525760e0cd82d2695a2f3c9fb69f.zip |
Re-uglify #public and #private to #__public_macro and #__private_macro.
llvm-svn: 147469
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 138e7d98791..4379b6bad18 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -682,12 +682,12 @@ TryAgain: //isExtension = true; // FIXME: implement #unassert break; - case tok::pp_public: + case tok::pp___public_macro: if (getLangOptions().Modules) return HandleMacroPublicDirective(Result); break; - case tok::pp_private: + case tok::pp___private_macro: if (getLangOptions().Modules) return HandleMacroPrivateDirective(Result); break; @@ -1052,8 +1052,8 @@ void Preprocessor::HandleMacroPublicDirective(Token &Tok) { if (MacroNameTok.is(tok::eod)) return; - // Check to see if this is the last token on the #public line. - CheckEndOfDirective("public"); + // Check to see if this is the last token on the #__public_macro line. + CheckEndOfDirective("__public_macro"); // Okay, we finally have a valid identifier to undef. MacroInfo *MI = getMacroInfo(MacroNameTok.getIdentifierInfo()); @@ -1083,8 +1083,8 @@ void Preprocessor::HandleMacroPrivateDirective(Token &Tok) { if (MacroNameTok.is(tok::eod)) return; - // Check to see if this is the last token on the #private line. - CheckEndOfDirective("private"); + // Check to see if this is the last token on the #__private_macro line. + CheckEndOfDirective("__private_macro"); // Okay, we finally have a valid identifier to undef. MacroInfo *MI = getMacroInfo(MacroNameTok.getIdentifierInfo()); |