diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:04:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:04:11 +0000 |
commit | fff745ee450800fed6eb8e515c0866dcb7c4def4 (patch) | |
tree | 12c935e317d7ae1b80bb2be270dda294a3a5bdab /lib/Lex/Preprocessor.cpp | |
parent | 9938d0731d627fd6dad28faa3acd07f1c6050af0 (diff) |
remove obsolete comment which happened to go over 80 cols.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index f7c38e773a..59632edaae 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -254,15 +254,8 @@ unsigned Preprocessor::getSpelling(const Token &Tok, unsigned Len; if (CurPTHLexer) { - // We perform the const_cast<> here because we will only have a PTHLexer - // when grabbing a stream of tokens from the PTH file (and thus the - // Preprocessor state is allowed to change). The PTHLexer can assume we are - // getting token spellings in the order of tokens, and thus can update - // its internal state so that it can quickly fetch spellings from the PTH - // file. Len = CurPTHLexer.get()->getSpelling(Tok.getLocation(), Buffer); - } - else { + } else { SourceLocation SLoc = SourceMgr.getSpellingLoc(Tok.getLocation()); unsigned FID = SourceMgr.getCanonicalFileID(SLoc); unsigned FPos = SourceMgr.getFullFilePos(SLoc); |