summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CacheTokens.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/Frontend/CacheTokens.cpp
parente96ab55b28ad1e295aeb6a958affc66dc06ab5e2 (diff)
downloadbcm5719-llvm-2f1e36bfd0c1ac408b3272fd1c62e1d56f3130d7.tar.gz
bcm5719-llvm-2f1e36bfd0c1ac408b3272fd1c62e1d56f3130d7.zip
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/Frontend/CacheTokens.cpp')
-rw-r--r--clang/lib/Frontend/CacheTokens.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CacheTokens.cpp b/clang/lib/Frontend/CacheTokens.cpp
index ee3fdd83433..50182247fc7 100644
--- a/clang/lib/Frontend/CacheTokens.cpp
+++ b/clang/lib/Frontend/CacheTokens.cpp
@@ -288,12 +288,12 @@ PTHEntry PTHWriter::LexTokens(Lexer& L) {
if ((Tok.isAtStartOfLine() || Tok.is(tok::eof)) &&
ParsingPreprocessorDirective) {
- // Insert an eom token into the token cache. It has the same
+ // Insert an eod token into the token cache. It has the same
// position as the next token that is not on the same line as the
// preprocessor directive. Observe that we continue processing
// 'Tok' when we exit this branch.
Token Tmp = Tok;
- Tmp.setKind(tok::eom);
+ Tmp.setKind(tok::eod);
Tmp.clearFlag(Token::StartOfLine);
Tmp.setIdentifierInfo(0);
EmitToken(Tmp);
OpenPOWER on IntegriCloud