]> granicus.if.org Git - clang/commitdiff
Remove Lexer::LexIncludeFilename.
authorTed Kremenek <kremenek@apple.com>
Wed, 12 Nov 2008 22:44:15 +0000 (22:44 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 12 Nov 2008 22:44:15 +0000 (22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59186 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index 14660568640b5774d66f206143fcef5604525821..b71452bc52e52820cc091fc7555778daa4672f2d 100644 (file)
@@ -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() {