diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-19 22:34:17 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-19 22:34:17 +0000 |
commit | eeca36fe9ad767380b2eab76a6fe5ba410a47393 (patch) | |
tree | a120e64abcec3787fee7899755842db3e278b12e /llvm/test/FrontendC++/2007-05-16-ReverseBitFieldCrash.cpp | |
parent | 60617128e63da15354af37ca32df2466ea5f8679 (diff) | |
download | bcm5719-llvm-eeca36fe9ad767380b2eab76a6fe5ba410a47393.tar.gz bcm5719-llvm-eeca36fe9ad767380b2eab76a6fe5ba410a47393.zip |
For assigning SourceLocations to macro arg tokens, reserve a single SLocEntry
for tokens that are lexed consecutively from the same FileID, instead of creating
a SLocEntry for each token. e.g for
assert(foo == bar);
there will be a single SLocEntry for the "foo == bar" chunk and locations
for the 'foo', '==', 'bar' tokens will point inside that chunk.
For parsing SemaExpr.cpp, this reduced the number of SLocEntries by 25%.
llvm-svn: 138129
Diffstat (limited to 'llvm/test/FrontendC++/2007-05-16-ReverseBitFieldCrash.cpp')
0 files changed, 0 insertions, 0 deletions