[cfe-commits] r59186 - /cfe/trunk/lib/Lex/Lexer.cpp

Ted Kremenek kremenek at apple.com
Wed Nov 12 14:44:17 PST 2008


Author: kremenek
Date: Wed Nov 12 16:44:15 2008
New Revision: 59186

URL: http://llvm.org/viewvc/llvm-project?rev=59186&view=rev
Log:
Remove Lexer::LexIncludeFilename.

Modified:
    cfe/trunk/lib/Lex/Lexer.cpp

Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=59186&r1=59185&r2=59186&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Wed Nov 12 16:44:15 2008
@@ -1066,27 +1066,6 @@
 // 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() {





More information about the cfe-commits mailing list