diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-11-20 08:01:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-11-20 08:01:39 +0000 |
commit | 203bfdfcf3368c6e7776d1f551f15655ca5bef9b (patch) | |
tree | 50907165f0f1538c2a890e4ed69825865acbcfe5 /clang/lib/Lex/PPDirectives.cpp | |
parent | c490c8877c9e4ddb14f28303e3e5df339e4e6f47 (diff) | |
download | bcm5719-llvm-203bfdfcf3368c6e7776d1f551f15655ca5bef9b.tar.gz bcm5719-llvm-203bfdfcf3368c6e7776d1f551f15655ca5bef9b.zip |
De-unionize fields in Token class.
- This is fairly gross but although the code is conceptually the
same, introducting the union causes gcc 4.2 on x86 (darwin, if that
matters) to pessimize LexTokenInternal which is critical to our
preprocessor performance.
This speeds up -Eonly lexing of Cocoa.h by ~4.7% in my timings and
reduces the code size of LexTokenInternal by 8.6%.
llvm-svn: 59725
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
0 files changed, 0 insertions, 0 deletions