summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-16 07:04:11 +0000
committerChris Lattner <sabre@nondot.org>2009-01-16 07:04:11 +0000
commit7c8556e7bc7f13cb91b3e208a40f46e6c9199f73 (patch)
tree19d531defab921dde2d02280e73bc30616dee98f /clang/lib/Lex/Preprocessor.cpp
parent6e8d814d36c441818626297342964a51d7281bcc (diff)
downloadbcm5719-llvm-7c8556e7bc7f13cb91b3e208a40f46e6c9199f73.tar.gz
bcm5719-llvm-7c8556e7bc7f13cb91b3e208a40f46e6c9199f73.zip
remove obsolete comment which happened to go over 80 cols.
llvm-svn: 62313
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index f7c38e773a5..59632edaaeb 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud