aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/PreprocessorLexer.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-02-28 02:37:51 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-02-28 02:37:51 +0000
commit2f1e36bfd0c1ac408b3272fd1c62e1d56f3130d7 (patch)
tree10debb91161e17bae8b96de8be0580470da29826 /clang/lib/Lex/PreprocessorLexer.cpp
parente96ab55b28ad1e295aeb6a958affc66dc06ab5e2 (diff)
downloadllvm-2f1e36bfd0c1ac408b3272fd1c62e1d56f3130d7.zip
llvm-2f1e36bfd0c1ac408b3272fd1c62e1d56f3130d7.tar.gz
llvm-2f1e36bfd0c1ac408b3272fd1c62e1d56f3130d7.tar.bz2
Rename tok::eom to tok::eod.
The previous name was inaccurate as this token in fact appears at the end of every preprocessing directive, not just macro definitions. No functionality change, except for a diagnostic tweak. llvm-svn: 126631
Diffstat (limited to 'clang/lib/Lex/PreprocessorLexer.cpp')
-rw-r--r--clang/lib/Lex/PreprocessorLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp
index e005c49..808a81b 100644
--- a/clang/lib/Lex/PreprocessorLexer.cpp
+++ b/clang/lib/Lex/PreprocessorLexer.cpp
@@ -34,7 +34,7 @@ void PreprocessorLexer::LexIncludeFilename(Token &FilenameTok) {
ParsingFilename = false;
// No filename?
- if (FilenameTok.is(tok::eom))
+ if (FilenameTok.is(tok::eod))
PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename);
}