Make FIXME a hard assertion.

llvm-svn: 59695
This commit is contained in:
Ted Kremenek 2008-11-20 01:52:55 +00:00
parent b33ce32bda
commit 2af3cee287
1 changed files with 6 additions and 2 deletions

View File

@ -173,10 +173,14 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) {
SrcMgr::CharacteristicKind FileType = SrcMgr::CharacteristicKind FileType =
SourceMgr.getFileCharacteristic(CurPPLexer->getFileID()); SourceMgr.getFileCharacteristic(CurPPLexer->getFileID());
if (CurLexer) if (CurLexer) {
// FIXME: Should we use the location of 'Result'?
Callbacks->FileChanged(CurLexer->getSourceLocation(CurLexer->BufferPtr), Callbacks->FileChanged(CurLexer->getSourceLocation(CurLexer->BufferPtr),
PPCallbacks::ExitFile, FileType); PPCallbacks::ExitFile, FileType);
// FIXME: Add callback support for PTHLexer. }
else {
assert (0 && "FIXME: Add callback support for PTHLexer.");
}
} }
// Client should lex another token. // Client should lex another token.