diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-12-08 02:21:11 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-12-08 02:21:11 +0000 |
commit | 222a7bbf0ded69b369d05dbeeceef0d86cbb0f37 (patch) | |
tree | 73f1dc8cb777595293075037865d46523d759c9b /clang/lib/Lex/PPDirectives.cpp | |
parent | 189aba9305ee27c376b2474a3379416569a6b350 (diff) | |
download | bcm5719-llvm-222a7bbf0ded69b369d05dbeeceef0d86cbb0f37.tar.gz bcm5719-llvm-222a7bbf0ded69b369d05dbeeceef0d86cbb0f37.zip |
[Preprocessor] Enhance Ifdef/Ifndef/Defined preprocessor callbacks to also pass
a MacroInfo object if the identifier was a macro name.
llvm-svn: 169665
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 74a787daa90..7b5df9c3148 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -2047,9 +2047,9 @@ void Preprocessor::HandleIfdefDirective(Token &Result, bool isIfndef, if (Callbacks) { if (isIfndef) - Callbacks->Ifndef(DirectiveTok.getLocation(), MacroNameTok); + Callbacks->Ifndef(DirectiveTok.getLocation(), MacroNameTok, MI); else - Callbacks->Ifdef(DirectiveTok.getLocation(), MacroNameTok); + Callbacks->Ifdef(DirectiveTok.getLocation(), MacroNameTok, MI); } // Should we include the stuff contained by this directive? |