summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-12-08 02:21:11 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-12-08 02:21:11 +0000
commit222a7bbf0ded69b369d05dbeeceef0d86cbb0f37 (patch)
tree73f1dc8cb777595293075037865d46523d759c9b /clang/lib/Lex/PPConditionalDirectiveRecord.cpp
parent189aba9305ee27c376b2474a3379416569a6b350 (diff)
downloadbcm5719-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/PPConditionalDirectiveRecord.cpp')
-rw-r--r--clang/lib/Lex/PPConditionalDirectiveRecord.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPConditionalDirectiveRecord.cpp b/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
index edcde871a03..063c556b4a5 100644
--- a/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
+++ b/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
@@ -82,13 +82,15 @@ void PPConditionalDirectiveRecord::If(SourceLocation Loc,
}
void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc,
- const Token &MacroNameTok) {
+ const Token &MacroNameTok,
+ const MacroInfo *MI) {
addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back()));
CondDirectiveStack.push_back(Loc);
}
void PPConditionalDirectiveRecord::Ifndef(SourceLocation Loc,
- const Token &MacroNameTok) {
+ const Token &MacroNameTok,
+ const MacroInfo *MI) {
addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back()));
CondDirectiveStack.push_back(Loc);
}
OpenPOWER on IntegriCloud