diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-08-07 22:27:00 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-08-07 22:27:00 +0000 |
commit | d05f31d05932cf797292c94f40453004a9667670 (patch) | |
tree | f33b818f78820bccb1b37367e3003fd584adad1e /clang/lib/Lex/PPDirectives.cpp | |
parent | 225801cd324a908f69b2c54cddd59c2aeed5582a (diff) | |
download | bcm5719-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.cpp | 3 |
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); |