diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-12 22:44:15 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-12 22:44:15 +0000 |
commit | 2f4f2dea823c2579a3c8334dff9436e7a073f129 (patch) | |
tree | 3e6dbf15d8a39cf1b83f05f996c5585fdab2f5d9 /clang/lib/Lex/Lexer.cpp | |
parent | 6c90efb92311f744bd181f5ef641ec002f63fffd (diff) | |
download | bcm5719-llvm-2f4f2dea823c2579a3c8334dff9436e7a073f129.tar.gz bcm5719-llvm-2f4f2dea823c2579a3c8334dff9436e7a073f129.zip |
Remove Lexer::LexIncludeFilename.
llvm-svn: 59186
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index 14660568640..b71452bc52e 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -1066,27 +1066,6 @@ bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr) { // Primary Lexing Entry Points //===----------------------------------------------------------------------===// -/// LexIncludeFilename - After the preprocessor has parsed a #include, lex and -/// (potentially) macro expand the filename. -void Lexer::LexIncludeFilename(Token &FilenameTok) { - assert(ParsingPreprocessorDirective && - ParsingFilename == false && - "Must be in a preprocessing directive!"); - - // We are now parsing a filename! - ParsingFilename = true; - - // Lex the filename. - Lex(FilenameTok); - - // We should have obtained the filename now. - ParsingFilename = false; - - // No filename? - if (FilenameTok.is(tok::eom)) - Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); -} - /// ReadToEndOfLine - Read the rest of the current preprocessor line as an /// uninterpreted string. This switches the lexer out of directive mode. std::string Lexer::ReadToEndOfLine() { |