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 | 6db72c092d6af5f36d15ee5ce9b9fee736cdf41c (patch) | |
tree | 7990b8e5c6fc56d6f7801a130106105a6d84007a /lib | |
parent | ab91b7086cceadce2cfd6a69cc90cebcdfcea07f (diff) |
Remove Lexer::LexIncludeFilename.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Lex/Lexer.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index 1466056864..b71452bc52 100644 --- a/lib/Lex/Lexer.cpp +++ b/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() { |