[cfe-commits] r85985 - /cfe/trunk/include/clang/Lex/Token.h
Daniel Dunbar
daniel at zuster.org
Tue Nov 3 16:34:40 PST 2009
Author: ddunbar
Date: Tue Nov 3 18:34:40 2009
New Revision: 85985
URL: http://llvm.org/viewvc/llvm-project?rev=85985&view=rev
Log:
Use unsigned char instead of unsigned : 8 to make the optimizer happier.
Modified:
cfe/trunk/include/clang/Lex/Token.h
Modified: cfe/trunk/include/clang/Lex/Token.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Token.h?rev=85985&r1=85984&r2=85985&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Token.h (original)
+++ cfe/trunk/include/clang/Lex/Token.h Tue Nov 3 18:34:40 2009
@@ -63,12 +63,12 @@
/// Kind - The actual flavor of token this is.
///
- unsigned Kind : 8; // DON'T make Kind a 'tok::TokenKind';
+ unsigned char Kind; // DON'T make Kind a 'tok::TokenKind';
// MSVC will treat it as a signed char and
// TokenKinds > 127 won't be handled correctly.
/// Flags - Bits we track about this token, members of the TokenFlags enum.
- unsigned Flags : 8;
+ unsigned char Flags;
public:
// Various flags set per token:
More information about the cfe-commits
mailing list