diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-23 05:09:10 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-23 05:09:10 +0000 |
commit | cb9eaf59fb07a4f40724be47d04ff75ee039a1c5 (patch) | |
tree | 5ca7033b47f09b9afa704927677da2964b012a16 /clang/lib/Lex/PPLexerChange.cpp | |
parent | de04b3f62c291222044eaabbf9e8adf84b68bcd8 (diff) | |
download | bcm5719-llvm-cb9eaf59fb07a4f40724be47d04ff75ee039a1c5.tar.gz bcm5719-llvm-cb9eaf59fb07a4f40724be47d04ff75ee039a1c5.zip |
PPCallbacks: Add hook for reaching the end of the main file, and fix DependencyFile to not do work in its destructor.
llvm-svn: 99257
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | clang/lib/Lex/PPLexerChange.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp index 6d1c132fc0a..335d3db627d 100644 --- a/clang/lib/Lex/PPLexerChange.cpp +++ b/clang/lib/Lex/PPLexerChange.cpp @@ -255,6 +255,7 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { if (!I->second->isUsed()) Diag(I->second->getDefinitionLoc(), diag::pp_macro_not_used); } + return true; } |