diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-12-23 18:27:26 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-12-23 18:27:26 +0000 |
commit | 3f94706e5784a9b3d55a061742b8e2fe62eb69ad (patch) | |
tree | 9b9cd4d96584340d2e4ebefd25c41995a9df0c7f /clang/lib/Lex/PTHLexer.cpp | |
parent | 76da281a6e36a121f0fe121e376702b18fbf0b6c (diff) | |
download | bcm5719-llvm-3f94706e5784a9b3d55a061742b8e2fe62eb69ad.tar.gz bcm5719-llvm-3f94706e5784a9b3d55a061742b8e2fe62eb69ad.zip |
Cosmetics: rename a variable and tighten spacing. No functionality change.
llvm-svn: 61375
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index 252e2f87daa..dc8f842cec2 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/lib/Lex/PTHLexer.cpp @@ -67,12 +67,11 @@ LexNextToken: tok::TokenKind k = (tok::TokenKind) CurPtrShadow[0]; Token::TokenFlags flags = (Token::TokenFlags) CurPtrShadow[1]; - uint32_t persistentID = ((uint32_t) CurPtrShadow[2]) + uint32_t perID = ((uint32_t) CurPtrShadow[2]) | (((uint32_t) CurPtrShadow[3]) << 8) | (((uint32_t) CurPtrShadow[4]) << 16) | (((uint32_t) CurPtrShadow[5]) << 24); - uint32_t FileOffset = ((uint32_t) CurPtrShadow[6]) | (((uint32_t) CurPtrShadow[7]) << 8) | (((uint32_t) CurPtrShadow[8]) << 16) @@ -90,8 +89,7 @@ LexNextToken: Tok.startToken(); Tok.setKind(k); Tok.setFlag(flags); - Tok.setIdentifierInfo(persistentID ? PTHMgr.GetIdentifierInfo(persistentID-1) - : 0); + Tok.setIdentifierInfo(perID ? PTHMgr.GetIdentifierInfo(perID-1) : 0); Tok.setLocation(SourceLocation::getFileLoc(FileID, FileOffset)); Tok.setLength(Len); |