From: Chris Lattner Date: Fri, 16 Jan 2009 07:04:11 +0000 (+0000) Subject: remove obsolete comment which happened to go over 80 cols. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fff745ee450800fed6eb8e515c0866dcb7c4def4;p=clang 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 --- 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);