summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-08-07 22:27:00 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-08-07 22:27:00 +0000
commitd05f31d05932cf797292c94f40453004a9667670 (patch)
treef33b818f78820bccb1b37367e3003fd584adad1e /clang/lib/Lex/PPDirectives.cpp
parent225801cd324a908f69b2c54cddd59c2aeed5582a (diff)
downloadbcm5719-llvm-d05f31d05932cf797292c94f40453004a9667670.tar.gz
bcm5719-llvm-d05f31d05932cf797292c94f40453004a9667670.zip
Push location through the MacroUndefined PPCallback and use it to print #undefs in -dD mode. (PR7818)
llvm-svn: 110523
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r--clang/lib/Lex/PPDirectives.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 15ab049d26c..53619f923a9 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -1508,7 +1508,8 @@ void Preprocessor::HandleUndefDirective(Token &UndefTok) {
// If the callbacks want to know, tell them about the macro #undef.
if (Callbacks)
- Callbacks->MacroUndefined(MacroNameTok.getIdentifierInfo(), MI);
+ Callbacks->MacroUndefined(MacroNameTok.getLocation(),
+ MacroNameTok.getIdentifierInfo(), MI);
// Free macro definition.
ReleaseMacroInfo(MI);
OpenPOWER on IntegriCloud